New blog post!
I've been investigating out how various languages get away with not requiring semicolons.
I looked at 11 languages and found so many interesting cases I had to share!
New blog post!
I've been investigating out how various languages get away with not requiring semicolons.
I looked at 11 languages and found so many interesting cases I had to share!
@terts In your Gleam example with 1 + 1 1 + 1 here are some more interesting cases to consider:
1 + 1 -1 + 1 (two expressions)
1 + 1 - 1 + 1 (one expression)
1 + 1 -x + 1 (one expression)
1 + 1 - x + 1 (one expression)
I verified on the Gleam playground that this is indeed how they parse.
@pervognsen That third Gleam case is...interesting 😄
I think I mention that rule that Swift has in the post!