4 ms·
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 ru
by bunderbunder 15y ago
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.