DEV Community

Discussion on: YoDa Expression!

Collapse
 
kais_blog profile image
Kai

More or less. Usually the constant portion of a conditional statement is placed on the right side. Yoda conditions reverse this typical order. This should avoid certain errors. Yet, their use is controversial.