CodyIT to [email protected]English • 11 hours agoOOP is not that badosa1.netmessage-square35fedilinkarrow-up130
arrow-up130external-linkOOP is not that badosa1.netCodyIT to [email protected]English • 11 hours agomessage-square35fedilink
minus-square@[email protected]linkfedilinkEnglish4•3 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•2 hours agoHow do C and C++ try to restrict mutability?
minus-square@[email protected]linkfedilinkEnglish2•edit-243 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.