News for hackers. Stuff that matters.
Re:Union Types in Flow and Reason by thardus on Monday April 23, 2018 @02:34AM (#16900982)
The purescript example in the post shows one of Purescript’s biggest problems, and that’s non-optimal codegen.

The series of if checks (O(n)) it generates as opposed to a switch statement can really add up in loops with bigger enums.

Of the langs listed, ReasonML/OCaml have the best codegen/ffi story, it’s relatively easy to drop them into existing JS projects.

There are no comments on this comment yet.