Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
account42
on Jan 26, 2022
|
parent
|
context
|
favorite
| on:
A trick to have arbitrary infix operators in Pytho...
Except that the ternary operator in C and C++ is not really an operator but a control flow construct.
HelloNurse
on Jan 26, 2022
|
next
[–]
It's an operator because it's functional (although often with side effects): three expressions go in and one expression goes out. Control flow constructs deal with statements instead.
munificent
on Jan 26, 2022
|
prev
[–]
It's an operator in the syntactic sense in the same way that "=", ".", and "||" are all operators.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: