Elvis operator
English
Etymology
The notation ?:
has been humorously reinterpreted as an emoticon representing the eyes and hairstyle of Elvis Presley.
Noun
Elvis operator (plural Elvis operators)
- (programming, informal) A binary operator that returns its first operand if that operand evaluates to true, and otherwise evaluates and returns its second operand.
See also
- walrus operator