Better HN
topnewbestaskshowjobs
Log inSign up

drsensor

3 karma · joined Oct 29, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

I wish the template syntax is similiar to Blazor. I feel the {#await} block is a bit too magical. Also, I'm afraid the template syntax can't keep up with Js syntax which keep evolving.

I like how Blazor approach the template syntax by allowing C# control flow syntax (if, for, ...) but disallow expression and assignment. I think if svelte template syntax allow Js syntax with the same rule as Blazor, it can keep up with Js evolution, especially when it support pattern matching. Also, _maybe_ it will make it easier to implement the autocompletion in the svelte langserver.

Ah yes, one feature request. What about make props and reactive assignment reflect on custom css variable too? (which mean --css-var need to be locally scoped same as how .class is locally scoped).