rwnobrega@lemmy.world to Python@programming.dev · 1 year agoPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comexternal-linkmessage-square10fedilinkarrow-up114arrow-down12
arrow-up112arrow-down1external-linkPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comrwnobrega@lemmy.world to Python@programming.dev · 1 year agomessage-square10fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up5·1 year agoI need to move away from using inheritance in my Python. I’ve been using Rust exclusively for the past year and it’s definitely going to affect how I write code in other languages.
minus-squareRiskable@programming.devlinkfedilinkEnglisharrow-up4·1 year ago“If only I could make this a trait…”
I need to move away from using inheritance in my Python. I’ve been using Rust exclusively for the past year and it’s definitely going to affect how I write code in other languages.
“If only I could make this a
trait
…”Yes!