|
I gotta say, the “vibe” of the new $props syntax, to me, is awful. I love that I can just use export let prop;
because it’s just JavaScript.The new runes syntax let { prop } = $props
Is not. This just makes me incredibly sad.Like all things, everyone is going to switch to the new syntax because it’s shiny, even though it objectively has a greater cognitive load (and IMO, looks ugly). My components are going to start looking like Svelte, rather than JavaScript. The reason I prefer svelte over Vue is because there’s less to remember. Looks like I’ll be looking for a new framework after Svelte 5. Just like I did after Vue 3. Also, > Snippets are more powerful and flexible, and as such slots are deprecated in Svelte 5. Removing slots, which feel really natural in HTML, with snippets - that are expressed as JavaScript values passed to a component - honestly, I don’t see the prioritisation of vibe, here. These changes are going to make it so, so much harder to teach Svelte that I honestly feel despondent. I feel like svelte 5 has just totally forgotten that Svelte is supposed to feel like JavaScript. Super sad. |