Quantcast
Channel: Renesas Synergy Platform
Viewing all articles
Browse latest Browse all 23645

Forum Post: RE: Coding style question

$
0
0
Thank you Karol, I was asking because it is very confusing to me especially when is a size comparison. For example, we are increasing a variable while it is lower than a limit but the sign that I read in the source code is a " bigger than " as a result of writing " while (LIMIT > variable) ". Or the opposite case, when we are decreasing a variable while it is bigger than zero but in the source code I read a " lower than " because of the " while (0 < variable) " syntax. For the moment it appears to me as obfuscated code and the first thing I do with the examples I want to understand at a glance is to reverse all the CONSTANT-OPERATOR-VARIABLE to its VARIABLE-DUAL OPERATOR-CONSTANT counterpart. Maybe some day I get used to it. Regards,

Viewing all articles
Browse latest Browse all 23645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>