6 ms·
Just throwing this out there, but have you considered that React and Vue in fact also have custom non-JS syntax? JSX is not valid JS, parsers had to be written
by 7sidedmarble 4y ago
Just throwing this out there, but have you considered that React and Vue in fact also have custom non-JS syntax? JSX is not valid JS, parsers had to be written to work with it. And Vue uses templating syntax in HTML, just like Svelte. Svelte doesn't have any non-native syntax in the JS parts, just the templating.
- dmitriid 4y agoWorse than that, Vue has something like three different DSLs under the hood. Some of it JS-like but not fully JS, some of it is custom attributes, some of it is "oh, it's JS, but you have to make very specific objects"
- fendy3002 4y agoIn my opinion parser is not a problem. I'm using tsx so there'll be compiling anyway. Now if they make tsx native it'll be game changing
- preommr 4y ago> but have you considered that React and Vue in fact also have custom non-JS syntax? I 100% agree, and I never fully got this argument. But my God do people love to repeat it. So much of react's initial fervor was around "it's just javascript". I write a lot of vue code and I only use like half a dozen directives and learning all of them should take less than one afternoon. And yet, the number of people that don't like vue because of a very simple DSL has been staggering. It really doesn't make sense to me, but people seem to really hate learning something that superficially looks different.
- unsupp0rted 4y agoSame here: I write Vue every day and I use `v-if`, `v-else`, `v-for`, `v-model` and sometimes a `v-slot`. I also use about 30 different `v-` components from Vuetify, which come with so many properties, events and slots that it might as well be a giant DSL.