Jason Novinger@programming.devM to Python@programming.dev · 1 year agoDon't use Python's propertywww.b-list.orgexternal-linkmessage-square6fedilinkarrow-up114arrow-down14
arrow-up110arrow-down1external-linkDon't use Python's propertywww.b-list.orgJason Novinger@programming.devM to Python@programming.dev · 1 year agomessage-square6fedilink
minus-squaresugar_in_your_tealinkfedilinkarrow-up2·1 year agoYup. I pretty much only use it if I need to ensure new values are valid or provide a default value. I do the same in other languages, like C# and JavaScript. Properties are cool, but should be quite rare.
Yup. I pretty much only use it if I need to ensure new values are valid or provide a default value.
I do the same in other languages, like C# and JavaScript. Properties are cool, but should be quite rare.