3 ms·
F#, Kotlin, Python, Nim and many others all seem to get by fine without semicolons as statement terminators.
by jhomedall 6y ago
F#, Kotlin, Python, Nim and many others all seem to get by fine without semicolons as statement terminators.
- WalterBright 6y agoIn Python, a newline is a token and serves as a statement terminator. What I'm referring to is the notion that: a = b c = d; can be successfully parsed with no ; between b and c. This is true, it can be. But then it makes errors difficult to detect, such as: a = b *p; Is that one statement or two?