TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 1 年前Switching to OCaml boislemmy.worldexternal-linkmessage-square88linkfedilinkarrow-up1409arrow-down124
arrow-up1385arrow-down1external-linkSwitching to OCaml boislemmy.worldTheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 1 年前message-square88linkfedilink
minus-squareCapeWearingAeroplane@sopuli.xyzlinkfedilinkarrow-up7·1 年前I would argue that there are very definitely cases where operator overloading can make code more clear: Specifically when you are working with some custom data type for which different mathematical operations are well defined.
minus-squareenglislanguage@lemmy.sdf.orglinkfedilinkarrow-up1·1 年前Yeah, that’s a very useful exception.
I would argue that there are very definitely cases where operator overloading can make code more clear: Specifically when you are working with some custom data type for which different mathematical operations are well defined.
Yeah, that’s a very useful exception.