3 ms·
I think this is fine - I don't see why having the `end`s on separate lines would make it easier to understand: if ... if ... if ...
by pansa2 2y ago
I think this is fine - I don't see why having the `end`s on separate lines would make it easier to understand:
if ...
if ...
if ...
if ...
if ...
x = 1
end end end
y = 2
end end
- Borg3 2y agoWhen I see such code I chukle... Really? I always try to make my code as flat as possible, either using next or break (or split to function and use return). Thats why I sometimes miss goto. But case can emulate it pretty fine.