2 ms·
I like the idea of a separate tree, but would prefer something other than a child-list for building the tree. I find building a graph with an outward-edge list
by aidenn0 2y ago
I like the idea of a separate tree, but would prefer something other than a child-list for building the tree. I find building a graph with an outward-edge list (which is what this does) to be more error prone and less clear than a either the braces or indentation based approach that is more common; IMO the only advantage to an edge-list is to make circular graphs, which isn't needed here.
[edit]
Also, if you are going to have lists that will be edited a lot, don't require commas for separating items; splicing lists with only whitespace for separators is a much faster operation in many editors.
- 1oooqooq 2y agoit's all opinion. i actually like the choices. i had a moment of awe in fact, because that way of describing html maps 1:1 with how i think while typing tedious html tags or js/json arrays. it is like a pure mind dump. ...and not using commas is just asking for trouble for zero benefit.
- aidenn0 2y ago> ...and not using commas is just asking for trouble for zero benefit. Have you ever worked with a source format that elides the commas? I work with one (Common Lisp) regularly and am telling you that it's not zero benefit. Clojure takes a middle ground by treating commas as whitespace.