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