Re:Try OCaml
by christophilus on Friday September 07, 2018 @08:23AM
(#17933676)
You can have overloaded functions without having type promotions. `1 + 2` would call `addInt`, `1.0 + 2.0` would call `addDouble` and `1 + 2.0` would be a type error, requiring manual conversion in order to fix it.
[ Parent
| on HN ]
There are no comments on this comment yet.