Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on May 7, 2016
|
parent
|
context
|
favorite
| on:
Implemented proposals for Swift 3
> Note that even "=" is a statement in Go.
In Python and Rust as well.
dbaupp
on May 8, 2016
[–]
Nitpicking: assignment is an expression that returns () in Rust, meaning `foo(a = 1, a)` is valid if foo has a signature like `fn foo(x: (), y: i32)`. However, arguments are (mostly) defined to be evaluated from left to right.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In Python and Rust as well.