3 ms·
>Yeah, but why use another patch on top of a patch where there are modern type-safe languages like Swift. Because targetting javascript has a lot of advantages
by leshow 10y ago
>Yeah, but why use another patch on top of a patch where there are modern type-safe languages like Swift.
Because targetting javascript has a lot of advantages, being cross platform is a major one of them. You basically get the type-safety of swift, with the ability to target multiple platforms.
The fact that it transpiles to JS is irrelevant, you can provide a safe interface to something unsafe. Take Elm for example, it transpiles to JS and yet guarantees that you will never produce a runtime exception.