SuperFola@programming.dev to Programming Languages@programming.devEnglish · 6 months agoType inference was a mistakeborretti.meexternal-linkmessage-square14fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1external-linkType inference was a mistakeborretti.meSuperFola@programming.dev to Programming Languages@programming.devEnglish · 6 months agomessage-square14fedilink
minus-squarepixxelkick@lemmy.worldlinkfedilinkarrow-up0·6 months agoYou know what really sucks? When I have a method that returns a Foo and like 300 places it gets called. And then I change it to return an ever so slightly different Bar Ah, now I need to go and update the code in 300 places cause the return type changed. “Can’t you just sed your codebase?” Maybe, but it could cause some serious unintended dawizard
You know what really sucks?
When I have a method that returns a
Foo
and like 300 places it gets called.And then I change it to return an ever so slightly different
Bar
Ah, now I need to go and update the code in 300 places cause the return type changed.
“Can’t you just
sed
your codebase?”Maybe, but it could cause some serious unintended dawizard