4 ms·
Are there any compile-to-JavaScript languages out there, which do this? I read about function* and yield, but this seems to require all functions to be rewritt
by k__ 13y ago
Are there any compile-to-JavaScript languages out there, which do this?
I read about function* and yield, but this seems to require all functions to be rewritten.
Also I don't quite understand how this accomplishes to run 2 functions in parallel, if they are async.
- balakk 13y agoHere are a couple : Saltarelle - C# to JS compiler: http://www.saltarelle-compiler.com/documentation/supported-c-language-features http://www.saltarelle-compiler.com/documentation/supported-c... Funscript: http://funscript.info/samples/simpleasync/index.html http://funscript.info/samples/simpleasync/index.html
- k__ 13y agoThank you! Are there any non-ms solutions?
- balakk 13y agoFunscript is not really MS - it's done by a third-party developer, and F# itself is open-sourced under a very liberal license, and runs well on Xamarin/Mono in OS X. I don't think there are direct equivalents in other languages, although similar approaches exist. Checkout Elm for example: http://elm-lang.org/Examples.elm http://elm-lang.org/Examples.elm