On Wed, February 23, 2005 9:08 am, Carl Cerecke said:
Java also lacks a goto.
There have been times where I've really wanted to use goto in Java, because the alternatives were much messier.
Now you're just really trying to wind us up, aren't you? Dijkstra would be turning in his grave if he were dead.
Well, yes. I was stirring a bit. But I've come across one case:
Specifically, implementing a DFA (Deterministic Finite Automaton, a finite state machine) without a goto is a pain, looks ugly, and is inefficient. It's bad enough in python, where you can manage with a list of functions and some globals. In Java, it's bad enough to make you want to learn Java Byte Code and write it in that.
Cheers, Carl.
