Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They're nothing against nested applications of the above, though. :-)

    t && a() || (u && b() || c())
Personally, I enjoy Rust's choice of letting `if` be an expression.


> I enjoy Rust's choice

As a Scala user, I agree it really is the best

   val a = if (t) a() else b()




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: