rwnobrega@lemmy.world to Python@programming.dev · 2 years agoPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comexternal-linkmessage-square3fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comrwnobrega@lemmy.world to Python@programming.dev · 2 years agomessage-square3fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up0·2 years 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-up1·2 years 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!