Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
comex
· 12y ago · 0 comments
I kinda want to see Rust without braces or semicolons, although I'm not sure what you'd do with implicit return.
Comments
[–]
Araq
12y ago
Nimrod solved that... The solution in a nutshell: If a statement list contains a 'return', it enforces a 'void' context for the statement list, otherwise the statement list has the type of the tailing expression e in (s; s; e).