News for hackers. Stuff that matters.
Re:ReasonML: Strict, powerful and forgiving by a0 on Saturday November 10, 2018 @05:35PM (#18423896)
In principle it seems like a significant limitation but in practice it is rarely an issue.

ReasonML does support parametric polymorphism so it is still possible to write generic code.

Some language features conveniently help to avoid boilerplate. For example it’s possible to have a `Float` module with arithmetic operators and “open” it like this: `Float.(10.0 + 0.5 / 3.0)`.

There’s also a work in progress project called Modular Implicits that will introduce ad-hoc polymorphism.

Re:ReasonML: Strict, powerful and forgiving by ohadrau on Saturday November 10, 2018 @06:50PM (#18424175)
Even then, I feel like working with Floats vs. Ints in a web browser is almost never an issue. I'd just open Float if I need it because I can't think of any scenario where I'd use both in one module