2 ms·
I think that's an interesting solution. The thing I've always wondered about doing this though is how would it work for storing code that has syntactical errors
by strongpigeon 3y ago
I think that's an interesting solution. The thing I've always wondered about doing this though is how would it work for storing code that has syntactical errors? dartfmt has the option of just giving up as you're still left with text. What happens when you want to share code that has those kind of errors?
Not saying this isn't a solvable problem.
- Retr0id 3y agoIf we assume code is shared in AST form, but people still end up editing a text representation of the AST (rather than directly editing the AST through a visual interface, as in Scratch et al), then you just wouldn't be able to share your syntax errors - realistically you'd put them in a comment or something, or exchange out-of-band.
- secondcoming 3y agoMaybe if it has syntactical errors it’s text and not code?