Go Down

Topic: Allow curled brackets around the declaration part before void(Setup) (Read 250 times) previous topic - next topic

RIN67630

I would love to be able to put the whole variables declaration part between curled brackets.

The compiler should just ignore these brackets, but that would allow us to collapse that part of code away to get faster to the active code.

Would'nt that be nice to have?

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

Robin2

Would'nt that be nice to have?
I use the Geany editor for my Arduino programming. It has a side-pane that is an index to all the functions in the program so you can click setup() in that pane to bypass all the definitions and skip directly to the start of the setup() function

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

RIN67630

Wouldn't that give you scope issues?
Not if the compiler just ignores the curled braces in everything before void setup()

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

Go Up