Yoda condition

English dictionary entry

Meanings

noun
  1. A logical condition with the usual order of operands reversed for various reasons, such as avoiding the accidental misuse of = (assignment) instead of == (equality), an error that is harder to spot when using the normal order of operands.

Pronunciation

/ˌjəʊdə kənˈdɪʃn̩/ /ˌjoʊdə kənˈdɪʃən/ En-us-Yoda condition.oga

Word forms

Yoda condition Yoda conditions

Etymology

An allusion to the somewhat grammatically reversed speech style of Yoda, a character in the Star Wars franchise—for example, "Truly wonderful, the mind of a child is." The term was possibly coined by Félix Cloutier (username “zneak”) in 2010, based on Yoda notation which is claimed to have been coined by Thomas M. Tuerke and published online in 2006.

Synonyms

Related words

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