11-17-2022, 02:02 AM
(11-17-2022, 12:59 AM)SMcNeill Wrote: I've got to say -- completely off topic here -- that these topics astound me with the interest and number of replies they generate. REM... of all keywords... REM has over 3 pages of comments on it, and all it does is place a comment in the code! Honestly, I figured I'd post a few paragraphs on the topic, hear a resounding chirp of crickets, and be done with it until tomorrow's new word turned up and was maybe a little more interactive.
Just goes to show -- you never know what'll draw the interest and conversation of the QB64-PE crowd!
Keep these word of the days coming. I read every one. I constantly miss little nuggets associated with key words.
You would think REM wouldn't get any second thought but I'm like the king of comments in my code. I'm always looking for better/different ways of adding comments.
Something I like that other languages offer is block commenting, like C
/* */
Early Pascal had them too
(* *)
but were replaced later on in Delphi by
{ }
Now, if there is one thing I wish the QB64 editor would not do when dealing with comments is this:
Important line of code here ' My comment
Another important line ' My comment
I would much rather the IDE left the single quote where I place it, like this:
Important line of code here ' My comment
Another most important line ' My comment
Instead of forcing the single quote to the end of the line.