TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 5 months agoSwitching to OCaml boislemmy.worldimagemessage-square83fedilinkarrow-up1410arrow-down124
arrow-up1386arrow-down1imageSwitching to OCaml boislemmy.worldTheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 5 months agomessage-square83fedilink
minus-squareCapeWearingAeroplanelinkfedilinkarrow-up7·5 months 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·5 months 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.