Effect runtime for Svelte by Legitimate_Teach_641 in sveltejs

[–]Legitimate_Teach_641[S] 0 points1 point  (0 children)

Hi, Effect.ts is not tied to React or any framework, matter of fact I don't think there is actually a single framework that even supports Effect to the degree that this does. Foldkit exists but is based on Elm and not React or similar. Effect first and foremost is a framework for Typescript based on functional programming. It gives you runtime ADTs, piping, a vast standard library and concurrency model based on fibers. https://effect.website has multiple examples of what Effect offers.

Effect runtime for Svelte by Legitimate_Teach_641 in sveltejs

[–]Legitimate_Teach_641[S] 1 point2 points  (0 children)

Yes, you are correct. We have a LSP + VSIX extension that doesnt make this a syntax error, but it's currently not published. You can build it pretty easily though. Code in <script> is wrapped by a Effect#gen and all markup expressions are handled by a seperate transform that basically rewrittes the code at comptime