3 ms·
> I actually like the VB-style, but VB did it mostly wrong: if you start the block with X, you should always end it with "End X". Thus, you'd have While ... End
by Jtsummers 4y ago
> I actually like the VB-style, but VB did it mostly wrong: if you start the block with X, you should always end it with "End X". Thus, you'd have While ... End While instead of crap like "Wend" and "Next" (For...).
That's covered in their syntactic salt section, but Ada does, mostly, what you describe.
procedure Proc(...) is
-- vars, types, and subprograms defined here
begin
...
end Proc;
for I in Some_Array'Range loop
...
end loop;
if condition then
...
end if;