DEV Community

Discussion on: Svelte Web Interfaces with Svelte

Collapse
 
cristiadu profile image
Cristiano Faustino

The syntax looks sort of ugly I would say. Not that this makes any difference in the effectiveness of it, but still, haha.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

Well i find the syntax is very concise and everyone with knowledge on js and html could find a point on it. Can't say the same on angular for example...
div *ngIf="whatever=[thing]"

What's the asterisk? And the brackets? Is it an array? Why should I put a templating condition as html attribute?

Damn it's like blending html syntax with a dumb ass alien child.
I've been working with angular for a year and it feels weird. I'm testing svelte for a week and it feels so nice, automagic routing (file-system based) instead on declaring things on 493873places, easy syntax, strict compiler etc... Will say more when i take the hands on for a real project