mycroftholmess@lemm.ee to Programmer Humor@programming.dev · 1 year agoGolang be likei.imgur.comimagemessage-square111fedilinkarrow-up11.37Karrow-down127
arrow-up11.35Karrow-down1imageGolang be likei.imgur.commycroftholmess@lemm.ee to Programmer Humor@programming.dev · 1 year agomessage-square111fedilink
minus-squarearc@lemm.eelinkfedilinkarrow-up22arrow-down4·1 year agoSwift and Rust have a far more elegant solution. Swift has a pseudo throw / try-catch, while Rust has a Result<> and if you want to throw it up the chain you can use a ? notation instead of cluttering the code with error checking.
Swift and Rust have a far more elegant solution. Swift has a pseudo throw / try-catch, while Rust has a Result<> and if you want to throw it up the chain you can use a ? notation instead of cluttering the code with error checking.