You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears to be a reasonably common style to format nested statements, usually loops, like this:
WHILE 0: WHILE 0
PRINT "42"
WEND: WEND
Whether this is good style is, hopefully, a question for another day. However, I've noticed that the IDE is currently indenting the contained statement block once for each level of statement nesting.
The aim of this formatting style is presumably to keep things compact so I was wondering if it might be better to use a single level of indentation here?
I noticed this because my inherited legacy code, which uses this style heavily, was formatted with a single indent level.
Thanks,
Doug
The text was updated successfully, but these errors were encountered:
No, I think that's the only sensible way to format your example (i.e., the indent level should be relative to the line above).
FWIW, having a quick look through my QB64 samples archive I note at least one example in wetspot.bas but you could probably find examples of any formatting you like in that archive.
It appears to be a reasonably common style to format nested statements, usually loops, like this:
Whether this is good style is, hopefully, a question for another day. However, I've noticed that the IDE is currently indenting the contained statement block once for each level of statement nesting.
The aim of this formatting style is presumably to keep things compact so I was wondering if it might be better to use a single level of indentation here?
I noticed this because my inherited legacy code, which uses this style heavily, was formatted with a single indent level.
Thanks,
Doug
The text was updated successfully, but these errors were encountered: