Developers cannot live without it.
-
No language would be perfect w/o
goto
...goto
... the little scratch on the roof of your mouth that would heal if only you could stop tonguing it, but you can't.(yes|no|maybe)*
-
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Nope! It was a military chap. A Colonel something-or-other.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
-
Nope! It was a military chap. A Colonel something-or-other.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
-
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I use the goto statement all the time! :-D I need to goto the hardware store. Goto to you room! I have to goto the bathroom. ..and... Goto hell!
It was broke, so I fixed it.
-
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]if it's good enough for the CPU, it's good enough for me.
-
-
Hmm... Birdy and colonel... Why am I thinking of Michael Caine in 'The Eagle Has Landed'?
-
-
-
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
That's a very wise decision. Lua is a meta-language. Any meta-language MUST provide goto - otherwise implementing higher level constructs could be too complicated.
:confused: Are you joking? :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
:confused: Are you joking? :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]No, I'm 100% serious. A typical example: implementing a high-level eDSL for, say, generating a Packrat parser out of the PEG grammar. The most straghtforward translation scheme will involve making a function for each terminal, with a single "failure" label at the end, and all the failed sub-expressions will just goto there. But for a target language without a goto, a compilation scheme would be significantly more complicated.
-
No, I'm 100% serious. A typical example: implementing a high-level eDSL for, say, generating a Packrat parser out of the PEG grammar. The most straghtforward translation scheme will involve making a function for each terminal, with a single "failure" label at the end, and all the failed sub-expressions will just goto there. But for a target language without a goto, a compilation scheme would be significantly more complicated.
That's just a 'lack of goto' problem. I cannot understand why you define Lua 'meta-language'. Furthermore, in my opinion, it is a complete (and fairly powerful) language.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]In BBC BASIC "On Error Off" is used to turn off any error trapping. In Visual Basic "On Error Goto 0" is used to turn off error trapping. But it doesn't go to line zero when an error occur it displays a message and exits the program. So the GOTO command survives but doesn't go to the line you asked it to goto.
-
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]On Error Go To Bed :)
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
On Error Go To Bed :)
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
}public class Naerling : Person{
public void DoWork(){ throw Unknown(); }
}FFY. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
public class Naerling : Person{
public void DoWork(){ throw Unknown(); }
}FFY. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Unknown is no function or property I implement. Though I am lazy I still want to compile ;)
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
The
goto
statement! Freshly released Lua 5.2[^] provides it. :rolleyes:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]It's not unlike the double-negative in English -- it's only bad when you use it wrongly.
I wanna be a eunuchs developer! Pass me a bread knife!