Isn't that super flat, how do you compose nested <template> like components do? Is this not meant to be hierarchical?
-
-
Lots of reasons for each. Glimmer tries to use the template syntax to nudge people towards "pure" syntax that avoids mistakes.
-
React leans harder on existing JS knowledge for control flow. More possibility for errors on the one hand, more familiar on the other.
-
Similarly, Glimmer leans on HTML precedent, while React leans on JS precedent. Both can be good. Both still have accidental complexity.
-
The devil is in when you get to the end of what the DSL (HTML version) can do...
-
And then you don't have an actual programming language to fall back on.
-
Yeah. A big part of the Glimmer approach is to implement a minimal but actual programming language.
-
Conditionals, loops, functions, higher order functions are the basic primitives you need. Templates don't need non-const variables, etc.
- 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.