Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lmm
· 4y ago · 0 comments
Some languages forbid "obviously pure" expressions like "0" as statements (since using them as a statement is probably a mistake).
Comments
[–]
hibbelig
4y ago
I think I was saying that Javascript is not one of them.
[–]
mxben
4y ago
Interesting! Any examples of such languages?
[–]
lmm
OP
4y ago
Java is one popular example. You get "error: not a statement".