-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Svelte 5: Snippet Shorthand #12162
Comments
A proposal that brings in implicitness only to drop one word doesn't seem to be good. |
I'm sorry, this shorthand will bring more confusion than it's worth. Sometimes verbosity can be a good thing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Over yonder in the Threlte repo we recently replaced Slots with Snippets in our
next
branch. One observation we had following this was about the increased verbosity surrounding slot props.Stuff like this:
Turned into this:
Describe the proposed solution
A large amount of our snippet usage seems to be passing props to child components using the default
children
snippet. It would be nice if a shorthand existed to reduce the verbosity a bit and make it quicker to read. Something like:Importance
nice to have
The text was updated successfully, but these errors were encountered: