Re:Bloomberg/bucklescript: A back end for the OCaml compiler...
by jeffsco on Monday April 18, 2016 @01:10AM
(#11517825)
What happens if you declare an external function of type 'a -> 'b? Obj.magic is trivial to implement, it's just the typing that is wonky. (Disclaimer: I have never looked at BuckleScript or js_of_ocaml.)
UPDATE: Looks like the answer is (usually) "no"—Ocaml code generated by Coq frequently uses Obj.magic, which BuckleScript does not support. sigh