My reasoning is that today, we can parse, interpret and compile <template>and its directives etc</template> to create a set of render ops
-
-
Not everyone has the same perspective on what makes a good human experience. Some love {{
#if}}. Some feel better with "just js" -
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.
- 2 more replies
New conversation -
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.