CodyIT to Programming@programming.devEnglish • 11 hours agoOOP is not that badosa1.netmessage-square35fedilinkarrow-up131arrow-down14
arrow-up127arrow-down1external-linkOOP is not that badosa1.netCodyIT to Programming@programming.devEnglish • 11 hours agomessage-square35fedilink
minus-square@lolcatnip@reddthat.comlinkfedilinkEnglish4•4 hours agoTo be fair, that’s an issue in almost every imperative language and even some functional languages. Rust, C, and C++ are the only imperative languages I know of that make a serious effort to restrict mutability.
minus-square@nous@programming.devlinkfedilinkEnglish2•2 hours agoHow do C and C++ try to restrict mutability?
minus-square@lolcatnip@reddthat.comlinkfedilinkEnglish2•edit-252 minutes agoconst They don’t do it well, but an attempt was made.
To be fair, that’s an issue in almost every imperative language and even some functional languages. Rust, C, and C++ are the only imperative languages I know of that make a serious effort to restrict mutability.
How do C and C++ try to restrict mutability?
const
They don’t do it well, but an attempt was made.