328
you are viewing a single comment's thread
view the rest of the comments
[-] Anafabula@discuss.tchncs.de 51 points 1 year ago
error: unknown start of token: \u{37e}
 --> src/main.rs:2:30
  |
2 |     println!("Hello, world!");
  |                              ^
  |
help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
  |
2 |     println!("Hello, world!");
  |                              ~

error: could not compile `playground` (bin "playground") due to previous error
[-] balder1993@programming.dev 20 points 1 year ago

That’s a well designed compiler.

[-] Mikina@programming.dev 5 points 1 year ago* (last edited 1 year ago)

I would rather see it just added to the standard definition as a valid character, so the compilation passes without issues. It would make lives of Greek programmers a little bit easier!

But on a second though, it would probably make the lives of compiler programmers a living hell. Having to deal with two symbols for one thing sounds really annoying :D

[-] dukk@programming.dev 2 points 1 year ago

Pretty sure Cargo can automatically fix the error.

[-] hharas@programming.dev 7 points 1 year ago
this post was submitted on 30 Jun 2023
328 points (96.6% liked)

Programming

17314 readers
53 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS