Yoda condition
短语尤达条件
发音
UK
/ˌjəʊdə kənˈdɪʃn̩/
US
/ˌjoʊdə kənˈdɪʃən/
词形变化
Yoda conditions
复数
Yoda conditions
释义与例句
n.
-
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.
尤达条件
非正式 计算机 工程 数学
词源
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.
来源:wiktionary