Etymology

Elvis operator

Today it means: A binary operator that returns its first operand if that operand evaluates to true, and otherwise evaluates and returns its second operand. Full definition →

Ask AI about its historyChatGPTClaudePerplexityGoogle AIGrok

The story

The notation ?: humorously reinterpreted as an emoticon representing the eyes and hairstyle of Elvis Presley.

Etymology from Wiktionary, CC BY-SA 4.0.