https://gist.github.com/Rich-Harris/0f910048478c2a6505d1c32185b61934 Skip to content [ ] All gists Back to GitHub Sign in Sign up Sign in Sign up 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. {{ message }} Instantly share code, notes, and snippets. @Rich-Harris Rich-Harris/what-is-svelte.md Last active July 11, 2023 22:09 * Star 374 You must be signed in to star a gist * Fork 13 You must be signed in to fork a gist Star You must be signed in to star a gist Code Revisions 8 Stars 374 Forks 13 Embed What would you like to do? ">Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. Learn more about clone URLs [ {#each percentage as p} {/each} which is nice and easy to understand. But "#each" is not as powerful as loops in JS are. If we could use JS directly, this could be: I do not pray for the JSX-syntax, this is a false friend as well. But using a full featured programming language would bring much more power to the task. As my grandma said: Never do a thing for a computer, that a computer can do for you. Sorry, something went wrong. @rbenzazon Copy link rbenzazon commented Mar 18, 2023 via email Sometimes I wonder about why we can't have detached Fragment in the code like in react, but in a way what svelte offers covers well most of the use cases, I would like to find some use case where it's a critical limitation. I guess that this limitation opens the door for an optimal component pattern. Some code-base in react use all the possible ways possible to render fragments at the same time and it becomes uncomfortable. With svelte I got a feeling of predictability. Svelte components follow more or less the MVC pattern with the script only containing the state (props,lets) controller (handlers/reactive statements) stores, the document/style is the view. You don't declare blocks / functions / state member there, you can only consume,listen or bind. This means that you can't obfuscate the intents and the how, it constrains the developer/teams into a clear path. Le lun. 13 mars 2023 a 23:14, Eckehard ***@***.***> a ecrit : ... ***@***.**** commented on this gist. ------------------------------ ***@***.*** : "Svelte is a language"*? Maybe, that is the weakest point of Svelte. It isn't really a "programming" language! Or maybe, a fairly limited one. There are - for good reason - about 10 different ways to use loops in Javascript. Svelte knows ? 1 ? Don't get me wrong: Svelte is absolute fantastic and possibly the best we could get for the web community today, but I absolutely miss the option to do all the things we can do with a "real" programming language. What, if we coud turn things around and not embed scripting elements into HTML, but vice versa: In Svelte, you write: I do not pray for the JSX-syntax, this is a false friend as well. But using a full featured programming language would bring much more power to the task. As my grandma said: Never do a thing for a computer, that a computer can do for you. -- Reply to this email directly, view it on GitHub or unsubscribe . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS or Android . Sorry, something went wrong. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.