[Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]
waldo kitty
wkitty42 at windstream.net
Tue Jun 1 02:14:03 CEST 2010
On 5/31/2010 05:50, Michael Schnell wrote:
> On 05/28/2010 06:18 PM, waldo kitty wrote:
>> i don't see begin/end as inside or outside... they _are_ the boundary
>> or frame of the block ;)
>
> To represent this as an indentation you would need to go_
>
> if x then
> begin
> incode;
> end;
> outcode;
>
> I never saw anything like that (and don't like it).
that is basically exactly how i code and have always done so... i made a
decision a looooooooong time ago to avoid the possibility of "ambiguous" coding
such that i do not take shortcuts (for the most part) and possibly end up with
something that doesn't work as intended... the handing "else" comes to mind
(even though i had never heard it specified like that before)...
granted, in cases of one liners depicted above, i may or may not do the
begin/end "wrapping"... it all depends on the situation and, as written by
myself before, my mood... this is true for not just "if" statements but all
other "decision tree" types...
More information about the Lazarus
mailing list