Re:When GOTO makes sense
by bunderbunder on Wednesday April 25, 2012 @10:18AM
(#3889187)
Fair enough that GOGO works elegantly for a hard-coded DFA. But as hard-coded automata get larger, they get harder to read. A general-purpose solution which runs automata defined more concisely elsewhere (e.g., in a DSL) is generally preferable because it will end up being more flexible and maintainable.
Not as performant, no. But the complaint about GOTO is that it tends to be a hallmark of less-maintainable code. This example falls right in with that complaint on account of being a less-maintainable way to write code.
Not as performant, no. But the complaint about GOTO is that it tends to be a hallmark of less-maintainable code. This example falls right in with that complaint on account of being a less-maintainable way to write code.