Elvis operator

English dictionary entry

Meanings

noun
  1. A binary operator that returns its first operand if that operand evaluates to true, and otherwise evaluates and returns its second operand.

Word forms

Elvis operator Elvis operators

Etymology

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

This entry uses open data from Wiktionary (CC BY-SA/GFDL). Word forms are used for search and are not indexed as separate pages.