Replies: 1 comment
-
If anything, it should be analogous to JS, so: {#for { id, name } of cats} But it never could be fully the same because of the key and index terms which have to be fitted somewhere. Also, switching out such a central syntactical component at this point would cause a lot of unnecessary churn. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to make the #each block syntax clean and clear like a for loop? - it is confusing compared to other programming languages.
It is not clear what problem is the
#each
block syntax trying to solve compared to a standardfor
loop syntax .Example from svelte website #each :
Suggestion
Loops in other programming languages for loops:
Javascript
Python
C
Beta Was this translation helpful? Give feedback.
All reactions