4 ms·
A useful aspect of yoda notation is that it often makes an equality test easier to read because the constant is shorter than the expression it is tested against
by ur-whale 7y ago
A useful aspect of yoda notation is that it often makes an equality test easier to read because the constant is shorter than the expression it is tested against, and the == sign comes right away, not buried far away in the line.
It's my favourite way of writing if statements.