3 ms·
It's still a win if they can go from procedural COBOL to procedural idiomatic Java. Goto's and "fall through PERFORMS" make idiomatic java impossible.
by le-mark 7y ago
It's still a win if they can go from procedural COBOL to procedural idiomatic Java.
Goto's and "fall through PERFORMS" make idiomatic java impossible.
- stcredzero 7y agoEven that involves basic blocks.
- bpicolo 7y agoSeems like gotos would be fairly easy to clear out in the automated refactor. Control flow feels like one of the more trivial parts of automated refactoring, because that's straightforward AST modifications?
- stcredzero 7y agoControl flow feels like one of the more trivial parts of automated refactoring, because that's straightforward AST modifications? No. The AST part is wrong. Compilers do decompose code into basic blocks. Even the most spaghettified code decomposes into basic blocks. Any language with tail call optimization can handle the basic blocks rewritten as functions. That won't get you to "clean" however.