this post was submitted on 30 Jun 2023
330 points (96.6% liked)

Programming

18106 readers
81 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 [email protected]



founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 52 points 2 years ago (2 children)
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 20 points 2 years ago (1 children)

That’s a well designed compiler.

[–] Mikina 5 points 2 years ago* (last edited 2 years ago) (1 children)

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 2 points 2 years ago

Pretty sure Cargo can automatically fix the error.

[–] hharas 7 points 2 years ago