2 ms·
What level of inter-opt? If you want to gradually convert from JS to clojurescript, it seemed like a huge amount of work.
by hajile 8y ago
What level of inter-opt? If you want to gradually convert from JS to clojurescript, it seemed like a huge amount of work.
- lilactown 8y agoAh, hmm. Using JS from CLJS is incredibly easy. Like I said, shadow-cljs solved all of our problems there. Going the other way - using code written in CLJS in JS - is another matter. This is not well supported by the ecosystem. shadow-cljs has much, much better support for this than the standard ClojureScript/closure compiler, but it doesn't hold a candle to what BuckleScript does. IME, doing a top-down transition - where you convert the top of your app to ClojureScript, that calls everything - works best. From the top, you work your way down into each feature. ReasonML, on the other hand, works better from the bottom up. Typing your whole app is hard, so you start with some small feature that then you export to JS land (since that's so much easier with BuckleScript). From the bottom, you work your way into writing more and more features in ReasonML.