News for hackers. Stuff that matters.
Re:Type-safe GraphQL with OCaml by jwatte on Friday December 01, 2017 @12:10PM (#15825263)
> I know it sounds like a small thing,

I think the case is obvious for integer vs floats -- addition should be addition.

Many languages don't use "+" for string addition, because string addition is not commutative (a+b != b+a) SQL, for example, uses "||" for this, and Haskell uses "++"

That being said, argument type overloading is important for clarity. One of the famous failures in Haskell is "map" only works on lists, and "fmap" on other functors.

There are no comments on this comment yet.