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
Baldur Nil
link
fedilink
English
201Y

That’s a well designed compiler.

@Mikina@programming.dev
link
fedilink
English
5
edit-2
1Y

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
link
fedilink
English
21Y

Pretty sure Cargo can automatically fix the error.

@hharas@programming.dev
link
fedilink
English
71Y

Common Rust W

Create a post

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



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1.11K users / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog