Page 1 of 1
labels and goto?
Posted: Fri May 20, 2005 5:22 pm
by billthecat
I should probably take the hint since I have not seen any references to goto in the lavishscript docs, but does lavishscript support the goto statement?
Posted: Fri May 20, 2005 5:58 pm
by Lax
Nope. Goto is an abomination

The reason it's not implemented in LavishScript actually has to do with some optimizations that really make goto a pain in the ass. Regardless, with functions, switches, and while loops (which also have break and continue), goto shouldn't really be necessary.
Posted: Fri May 20, 2005 6:54 pm
by billthecat
advpath seems to make liberal use of them. I should be able to shoehorn it into some switch statements though.
Re: labels and goto?
Posted: Tue Jan 06, 2026 11:35 am
by xyilla