3 ms·
There's a way to set the infix associativity and precedence, isn't there? (I'm rusty at Haskell, it's not my thing.) You can do typeclass-like overloading in O
by silentbicycle 17y ago
There's a way to set the infix associativity and precedence, isn't there? (I'm rusty at Haskell, it's not my thing.)
You can do typeclass-like overloading in OCaml via its module system, but it isn't really integrated into basic arithmetic, which probably would have been the single most useful place for it. (I just got used to it, but it's definitely a wart.)
- eru 17y ago> There's a way to set the infix associativity and precedence, isn't there? Yes, at least for your new operators like , ++, ==> etc.