3 ms·
> I haven't seen a fully static transpiled language deal with that gracefully, but I'd love to be wrong about that! Scala.js is specifically designed to be ver
by sjrd 9y ago
> I haven't seen a fully static transpiled language deal with that gracefully, but I'd love to be wrong about that!
Scala.js is specifically designed to be very good at this. You might want to give a shot, if you haven't already ;) Usually you would stay within the type-safe Scala code, or even talk to JavaScript libraries in a type-safe way. But it will always let you do anything you could do in JavaScript (it is one of its core language design decisions). If you want to do something especially weird, the syntax to do so might be pretty awkward, but in most cases it will feel very natural.
- paulgb 9y agoThanks, I'll take a look. I do like Scala. Do you recommend a particular editor?
- kbp 9y agoIn ReasonML, most of your code is just Reason (which is just OCaml), but you can easily provide type declarations and use Javascript code in a typesafe way, or you can just drop to raw JS at any point in a Reason file.