[En-Nut-Discussion] STM32 share EXTI can not work properly, need some fix below

Harald Kipp harald.kipp at egnite.de
Fri Sep 25 09:06:38 CEST 2015

Hi Nathan,

On 24.09.2015 21:10, Nathan Moore wrote:
>> Follows the Nut/OS coding rules (we never use '1 == x', always 'x == 1')
> Why is that?  While (x == 1) seems more natural (1 == x) is safer since the
> accidental (1 = x) will generate a compiler error.

At the cost of readability (see "Yoda conditions criticism" at
Wikipedia). For private quick and dirty programming, it may make sense.
For public code readability is more important, IMHO.



More information about the En-Nut-Discussion mailing list