Programming Raspberry Pi Pico microcontrollers, I have a choice between C, micropython, arduino, BBC Basic (and at least one other basic) or assembly. C wins hands down, unfortunately I have to use cmake with that but only for the SDK interfaces, not for my code. BBC Basic actually interprets on the Pico rather than cross-compiling from another machine - which would be a contradiction for an interpreter lol.caseih wrote: ↑Dec 01, 2022 17:06 Just curious. What are you doing in C that you couldn't do in FB? Leaving aside the mountains of macros that are involved in C header files making them a challenge to translate to FB, C code itself is 1:1 translatable to FB.
What do you mean by over using for/next loops?
It would be interesting to make a FBC Pico SDK library but the cmake dependency would add a degree of complexity.
I instinctively use for-next, usually because I can't be bothered checking which loop syntax each language does - I'm getting old, memory isn't good, learning new things is unrealistic. Because I've used a for-next I then either use flags, exit-for or variable-manipulation to escape the for-next when really I should have used either a pre-conditional or post-conditional loop in the first place.
Sorry about terminology, I make it up as I go along.