HACKER Q&A
📣 mishindi

What is the story behind the ternary operator?


I would like to understand the ternary operator better, to know its origin and the creator of it.


  👤 coreyp_1 Accepted Answer ✓
From wikipedia: https://en.wikipedia.org/wiki/Ternary_conditional_operator, originally from CPL in the early 1960s. A cursory internet search doesn't yield much else, though, so you would probably have to interview someone to learn more.

It's function is pretty well known, though. What else do you want to know about it?