4 ms·
If a DSL is "cursed", then JSX is a lot less cursed than that -- it's basically just XML-like shorthand for JS, as opposed to a whole new language.
by tentacleuno 3y ago
If a DSL is "cursed", then JSX is a lot less cursed than that -- it's basically just XML-like shorthand for JS, as opposed to a whole new language.
- phrasecode 3y agoWhy not we think in terms of "tradeoffs"? You'll find that there a million alternative syntaxes that could work but which would require seeking the right balance. Evan You's on this comes to mind again: https://youtu.be/ANtSWq-zI0s?si=fDbJLfA9T5VLvgsZ https://youtu.be/ANtSWq-zI0s?si=fDbJLfA9T5VLvgsZ. Meanwhile, I am happy to put up a quick post regarding the thinking over here. I might have done a bit of that in the introductory article: https://dev.to/oxharris/revisiting-the-html-problem-space-and-introducing-oohtml-3oh5 https://dev.to/oxharris/revisiting-the-html-problem-space-an...