@lisyarus@mastodon.gamedev.place
Post #4140179
2026-07-27 15:19 UTC
@witchgirls@woof.tech What do you mean by "get away with removing them"?
Replies (1)
-
@witchgirls@woof.tech 2026-07-27 15:22
@lisyarus@mastodon.gamedev.place Most programming languages have expression statements: statements that are just a blank expression. Like, 3 + 3; is valid syntax in a lot of languages. These are what make multi-line no-semicolon syntax ambiguous, because let x = 10 - 1 could be let x = 10 - 1; or let x = 10; - 1; but if "- 1;" is not a valid statement (because expression statements are forbidden) then the only valid interpretation is 10 - 1.