Yoda condition
English
    
    Etymology
    
In allusion to the somewhat grammatically reversed speech style of Yoda, a character in the Star Wars franchise.
Noun
    
Yoda condition (plural Yoda conditions)
- (programming, informal) A logical condition with the usual order of operands reversed — e.g. 
if (18 == age)rather thanif (age == 18)— for various reasons, such as avoiding accidental misuse of=(assignment) instead of==(equality), a mistake that is harder to spot when using the normal order of operands. 
Translations
    
A Programming Condition
  | 
    This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.