Page 2 of 2

Re: [Not a] Bugette in UART examples

Posted: Tue Feb 12, 2019 12:29 pm
by ESP_Sprite
Well, we do have some requests...

To be fair, it also took me a while to be okay with 'newer' things like 'for (int i=0;'. But in the end, it's added to the standard for a good reason and I'm not sure if I even want to write anything for a non-C99-compliant compiler ever again (had some bad experience with the Rabbit CPU's 'almost-C') so I decided to just go with it. I can imagine that the culture in an entire company may be a bit slower to shift, though.

Re: [Not a] Bugette in UART examples

Posted: Tue Feb 12, 2019 12:47 pm
by RobMeades
Joking aside, I'm told that this would currently fail our Lint checking. But I do agree on "for (int i=": I once eschewed this practice but have since seen the light of limiting scope in this way. Maybe one day KISS (Keep It Simple Stupid) will edge forward.

Re: [Not a] Bugette in UART examples

Posted: Sat Oct 16, 2021 1:03 pm
by moefear85
ouch.... I'm reading these posts >3 years into the future... and still feel the bite!