|
|
|
|
|
by fluffything
2522 days ago
|
|
> why doesn’t every language give me a batteries-included digraph ADT, that has every feature you’d need to implement a control flow graph, such that the compiler’s CFG is just a stdlib digraph instance? Rust does give you access to its internal data-structures on nightly. These change quite often, so you will need to update code that uses them pretty much every week. Why doesn't many language does this in some stable form? Because that sets the internal data-structures and APIs of the compiler in stone forever, which makes it infinitely harder to improve the compiler and implement new language features. |
|
Then you have Eiffel, Smalltalk and Lisp variants.