Hacker News new | past | comments | ask | show | jobs | submit login

> Note that even "=" is a statement in Go.

In Python and Rust as well.




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: