CodyIT to [email protected]English • 13 hours agoOOP is not that badosa1.netmessage-square38fedilinkarrow-up132arrow-down14cross-posted to: [email protected]
arrow-up128arrow-down1external-linkOOP is not that badosa1.netCodyIT to [email protected]English • 13 hours agomessage-square38fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilinkEnglish6•6 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@[email protected]linkfedilinkEnglish2•4 hours agoHow do C and C++ try to restrict mutability?
minus-square@[email protected]linkfedilinkEnglish3•edit-23 hours 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.