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

Make yourself a function.


Not so helpful in a strict language (since you want y to be evaluated only when x is None)


Yes, that's true. You would need to wrap it in a lambda, but then that's looks horrible and you might as well use an if.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: