[thelist] Coning conventions, pet peeves
Volkan Özçelik
volkan.ozcelik at gmail.com
Thu Apr 28 14:19:40 CDT 2016
> By putting the comparison the other way around - making sure that the
thing to the left of the operator is not an lvalue - you make it harder to
make this mistake.
Yup that’s the reason.
Rest assured, Arabs don’t read code right to left :)
You can see [1] for a detailed discussion on the subject matter.
[1]: "Yoda Conditions" http://www.wikiwand.com/en/Yoda_conditions
HTH,
Volkan.
On Thu, Apr 28, 2016 at 11:33 AM Jason Handby <jason.handby at corestar.co.uk>
wrote:
> > By putting the comparison
> > the other way around - making sure that the thing to the left of the
> operator
> > is not an lvalue - you make it harder to make this mistake.
>
> ("lvalue" just means something that can legitimately go on the left of an
> assignment operator.)
>
> Jason
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list