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 I would urge you not to go down this road. Stick to mandatory semicolons. If it were entirely my call, I'd take a step *farther* toward mandatory statement terminators, and make
fn returns_b() -> rettype {
a();
b()
}
a syntax error; you would be obliged to write
fn returns_b() -> rettype {
a();
b();
}
and that would return the value returned by b, unlike Rust and current Roto. To return nothing, you would write
fn returns_unit() {
a();
b();
();
}