DEV Community

Discussion on: YoDa Expression!

Collapse
 
dansilcox profile image
Dan Silcox • Edited

I think the idea is that you might put = instead of == by accident. Very difficult to debug, this would be.

That said, in languages like JS and PHP that have the concept of ===, the Yoda syntax becomes a bit irrelevant. I guess the key is consistency. So my advice would be, in the words of the great Jedi Master himself:

Do or do not, there is no try

Collapse
 
dansilcox profile image
Dan Silcox

Ha sorry not a one liner :D

Collapse
 
slimdestro profile image
D\sTro

You got it 👌