4 ms·
It's been around for a few years. I was able to use it to quickly whip up some sorta-complicated UIs for some internal tools. I despise JS, and have spent hours
by MichaelGG 12y ago
It's been around for a few years. I was able to use it to quickly whip up some sorta-complicated UIs for some internal tools. I despise JS, and have spent hours of time fixing simple casing errors or other things that static typing would fix. Plus F# the language is quite superior to JS, so I don't feel icky while working on it.
The other benefit is that I can use all the same type definitions, so I don't need to write some generator or wrapper around my XHR functions - it just works.
It's quite easy to just drop out into pure JS if you feel the need. And defining wrappers is actually very very simple. For example:
[<Direct "foo($a, $b)">]
let foo (a: string) (b: int) = ()
Doesn't Google use a Java-based system to do essentially the same thing (GWT)?
But you're right that if you are already happy with JS then there's a lot less reason to pick it up.
- g8gggu89 12y agoGWT has long-ish compile times and it involves quite a house of cards, with getting the Eclipse plugin to talk to the browser plugin, for the 1? browser that actually has a plugin. Yeesh :(
- RyanZAG 12y agoFixed in GWT 2.7 builds (already available): https://www.youtube.com/watch?v=qpCSbj36O44&feature=youtu.be https://www.youtube.com/watch?v=qpCSbj36O44&feature=youtu.be