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

The parent I was replying to was talking about Go. There is no ternary operator in Go. There are no non-block forms of if in Go. I'm not sure what your "of course" is referring to, but I guess it is unrelated.



I figured we were talking about C since that's the main topic. In any case short-circuit && and || still work in Go AIUI, so my point stands.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: