4 ms·
> You have to explicitly opt-in to any unsafe operations Many of the unsafe operations don't exist in OCaml. Often because the GC makes them unnecessary.
by ori_b 7y ago
> You have to explicitly opt-in to any unsafe operations
Many of the unsafe operations don't exist in OCaml. Often because the GC makes them unnecessary.
- pcwalton 7y agoYou can implement all of the unsafe operations in OCaml using the unsafe Obj.magic cast: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html