rwnobrega@lemmy.world to Python@programming.dev · 1 year agoPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comexternal-linkmessage-square4fedilinkarrow-up14arrow-down11
arrow-up13arrow-down1external-linkPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comrwnobrega@lemmy.world to Python@programming.dev · 1 year agomessage-square4fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up1·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-up2·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!