TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 29 days agoSwitching to OCaml boislemmy.worldimagemessage-square86fedilinkarrow-up1406arrow-down124
arrow-up1382arrow-down1imageSwitching to OCaml boislemmy.worldTheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 29 days agomessage-square86fedilink
minus-squareCapeWearingAeroplanelinkfedilinkarrow-up7·28 days agoI 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·28 days agoYeah, 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.