Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
merb
on May 19, 2016
|
parent
|
context
|
favorite
| on:
Swift: Things I really wanted that won’t make it
No 1. which is missing everywhere:
Everything should return a value, there shouldn't be any statements.
supster
on May 19, 2016
|
next
[–]
why? don't you need side effects, like print("hello world")
chris_7
on May 19, 2016
|
parent
|
next
[–]
That is an expression that returns Void.
jacobwcarlson
on May 19, 2016
|
parent
|
prev
|
next
[–]
It would be nice if that returned the number of characters printed, ala sprintf() in c.
jackweirdy
on May 20, 2016
|
root
|
parent
|
next
[–]
In my opinion, that would go against the principle of least surprise.
acire
on May 19, 2016
|
prev
[–]
Pitched. Rejected.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Everything should return a value, there shouldn't be any statements.