3 ms·
I think haskell does this right. You can make function infix by turning "add a b" into "a `add` b" and you can't overload existing operators but you can make y
by Symmetry 4y ago
I think haskell does this right. You can make function infix by turning "add a b" into "a `add` b" and you can't overload existing operators but you can make your own and do "a _+ b" or whatever and everybody will know it isn't the standard + but it's still readable.
- masklinn 4y ago> you can't overload existing operators You can though, just implement the relevant typeclass. Not only that, but you can straight up shadow existing operators.
- deleted 4y ago[deleted]