Y
Hacker News
new
|
ask
|
show
|
jobs
by
jhomedall
1902 days ago
F#, Kotlin, Python, Nim and many others all seem to get by fine without semicolons as statement terminators.
1 comments
WalterBright
1902 days ago
In 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?
link
What I'm referring to is the notion that:
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: Is that one statement or two?