Re: STM32 share EXTI can not work properly, need some fix below

Harald Kipp <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
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.

Regards,

Harald

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.