3 ms·
Grouping code … You can't really represent that in an AST. <visual-group>…</visual-group> Also, I wish that at least in current editors there would be a way t
by wruza 2y ago
Grouping code … You can't really represent that in an AST.
<visual-group>…</visual-group>
Also, I wish that at least in current editors there would be a way to render \n\n as a half-height line. Full-height empty lines are too bold.
Automatic wrapping doesn't work because you want to break at specific points
You really want to have a set of buttons that switch between:
- a line of arguments
- a block of arguments
- a line/block of only non-default valued arguments
- arguments sorted by name
- …
And a hint on a default representation, with some default heuristics.
How does it know that x, y, width, and height are semantically grouped and best put on the same line? It doesn't. (from the other comment)
Look higher, parameters can be grouped at the declaration level. <params><related-params name=“coords”>…</>…</>. Now you can render a nice frame around these in block mode. Or not, depending on local renderer settings.
Everyone will hate it.
There’s always a way to make everyone hate something, especially if the solution is clueless about its problem. It doesn’t mean it should be done this way. Experiment and evolution could make it work, we just have to let people try instead of dismissing it so confidently.