News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by nvarsj on Sunday January 03, 2021 @06:12AM (#25621106)
I know it’s pedantic but I despise the semicolons in Rust. They make the language ugly and constantly burden the programmer unnecessarily. It’s a bizarre choice for such a modern language.
Re:A half-hour to learn Rust by everybodyknows on Sunday January 03, 2021 @06:24PM (#25626282)
I find my own JS code easier to read since I dropped them, and my tired eyeballs no longer need to lex the ";" pattern. Yet some JS masters (Mike Bostock) include them religiously.

Semi-colons do make make possible multiple statements on a single line -- but surely there's a stronger rationale than that.

Re:A half-hour to learn Rust by ptx on Sunday January 03, 2021 @06:56PM (#25626487)
Python allows semicolons for separating multiple statements on a single line, even though it doesn't require them otherwise. (Those statements can't have blocks, because of the indentation-based syntax, but that's a separate issue.)