lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


HyperHacker wrote:
> > Edgar Toernig <froese@gmx.de> writes:
> >
> >> In my experience, it helps reading and understanding code if the
> >> jump-statement gives a hint about the direction the jump takes,
> >> forward or backward.
> 
> How about:
> goto a --redo
> goto b --skip
> ? :)

Sure, a caring experienced programmer may add such comments but I bet,
99% of goto statements wouldn't have such comments.  If the syntax
forces the author to document his intend (without any burden as he's
thinking about skipping/redoing anyway), everyone wins.

Ciao, ET.