Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jfkebwjsbx
on July 6, 2020
|
parent
|
context
|
favorite
| on:
Rust for JavaScript Developers – Functions and Con...
I love that idea, but I still prefer it’d read the same as an if. Meaning the condition first and the false case last.
nicoburns
on July 6, 2020
[–]
Rust implements this:
let foo = if is_employed() { 2000 } else { 0 }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: