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:
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:Ha sorry not a one liner :D
You got it 👌