rwnobrega@lemmy.world to Python@programming.dev · 1 year agoPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comexternal-linkmessage-square11fedilinkarrow-up114
arrow-up114external-linkPython interfaces: abandon ABC and switch to Protocolslevelup.gitconnected.comrwnobrega@lemmy.world to Python@programming.dev · 1 year agomessage-square11fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up4·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!