Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
merb
· 10y ago · 0 comments
No 1. which is missing everywhere:
Everything should return a value, there shouldn't be any statements.
Comments
[–]
supster
10y ago
why? don't you need side effects, like print("hello world")
[–]
chris_7
10y ago
That is an expression that returns Void.
[–]
jacobwcarlson
10y ago
It would be nice if that returned the number of characters printed, ala sprintf() in c.
[–]
jackweirdy
10y ago
In my opinion, that would go against the principle of least surprise.
[–]
acire
10y ago
Pitched. Rejected.