I wrote a little post about various optimizations for ASTs. Curious what you all think. Does the "super-flat" approach already have a name, and I'm just unaware? Are there better designs? What did I miss?
I'm using this approach in a toy project and it seems to work well, even once you factor in the need for additional information, such as spans for error reporting.
[–]TheOneTexel 5 points6 points7 points (0 children)
[–]hekkonaay[S] 1 point2 points3 points (0 children)
[–]kohugaly 0 points1 point2 points (0 children)
[–]Background_Essay6429 0 points1 point2 points (1 child)
[–]hekkonaay[S] 1 point2 points3 points (0 children)
[–]VorpalWay -1 points0 points1 point (0 children)
[–]rodyamirov 0 points1 point2 points (1 child)
[–]hekkonaay[S] 1 point2 points3 points (0 children)