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

I'm personally convinced that the reason the conditional operator of called "the ternary operator" it's that the ANSI C Programming Language book contains the phrase "the ternary operator, ?:", and a lot of readers didn't know what "ternary" meant and thought it was a name.


This sounds reasonable to me. I used to think you could guess what someone's first programming language was based on if they wrote methods or procedures. :D




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

Search: