This repository was archived by the owner on Mar 7, 2025. It is now read-only.
v0.1.1 now supports reactive declarations #61
pintariching
announced in
Announcements
Replies: 1 comment 2 replies
-
Will you be announcing pre release on Reddit anytime soon feel like it will be a good way to attract some contributors. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've added support for reactive declarations ->
$: double = counter * 2
. I recommend watching lihautan's video Adding Reactive Declarations into our mini Svelte. He explains how they work behind the scenes very well.For now, not a lot of statements are supported, but more should be relatively easy to add, by expanding
match
statements and extracting the right names. For everything that is not supported, the compiler panics so that it's easier to see what needs to be implemented.Beta Was this translation helpful? Give feedback.
All reactions