You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte's templating language prefixes conditionals like {#if answer === 42} and {:else} which sometimes confuses folks: htmlx-org/HTMLx#12
Removing the # and : was proposed in Svelte at one point when discussing syntax changes (sveltejs/svelte#1318 (comment)), but the core team thought this would making parsing too difficult.
If feasible, it would probably be more familiar for most folks to simply use syntax like {if answer === 42} and {else} and {/if}. The same would go for loops: {each} and {/each}
The text was updated successfully, but these errors were encountered:
Svelte's templating language prefixes conditionals like
{#if answer === 42}
and{:else}
which sometimes confuses folks: htmlx-org/HTMLx#12Removing the
#
and:
was proposed in Svelte at one point when discussing syntax changes (sveltejs/svelte#1318 (comment)), but the core team thought this would making parsing too difficult.If feasible, it would probably be more familiar for most folks to simply use syntax like
{if answer === 42}
and{else}
and{/if}
. The same would go for loops:{each}
and{/each}
The text was updated successfully, but these errors were encountered: