RE: silly statement terminators

new topic     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
>
>   Scans:for i = 1 to length(s) do
>        c = getc(h)
>        while find(c, charlist) do
>            if c = AbortCode then
>                exit (ScanS)
>            end if
>            RoutineA(c)
>        end while
>        RoutineB()
>   end Scans
>
> (I'd also like to get rid of this silly 'end for', 'end while',
> 'end procedure', 'end function' stuff. Just a maintenance
> headache and serves no useful purpose, but that's another issue
> blink )

So what would you use to terminate statements?

Modula 2 and Oberon use just a plain "END", but that can be
confusing (for me at least!).  C/C++/Java/JavaScript et al
use the "}", which has the same problem as Modula 2 and
Oberon.

Don't tell me you're leaning toward the big snake way of
doing it? <grin>

I kind of like it on the surface, but what if I
accidentally forget to indent correctly?  I haven't used
Python enough to really get a feel for that feature.

So, what would you use?

Thanks!

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu