ZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 10 months agoFunctional bros be likelemmy.worldimagemessage-square55fedilinkarrow-up1313arrow-down117
arrow-up1296arrow-down1imageFunctional bros be likelemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 10 months agomessage-square55fedilink
minus-squareDickFiasco@lemm.eelinkfedilinkarrow-up2·10 months agoI use a combination of both. Objects are declared const, all members are set in the constructor, all methods are const. It doesn’t really work for some types of programs (e.g. GUIs) but for stuff like number crunching it’s great.
I use a combination of both. Objects are declared const, all members are set in the constructor, all methods are const. It doesn’t really work for some types of programs (e.g. GUIs) but for stuff like number crunching it’s great.
deleted by creator