SuperFola to Programming Languages@programming.devEnglish • 1 year agoType inference was a mistakeborretti.meexternal-linkmessage-square46fedilinkarrow-up169arrow-down111
arrow-up158arrow-down1external-linkType inference was a mistakeborretti.meSuperFola to Programming Languages@programming.devEnglish • 1 year agomessage-square46fedilink
minus-square@Gobbel2000@programming.devlinkfedilink39•1 year agoI’m just glad that type inference can improve this sort of situation a bit: ConfigManager configManager = new ConfigManager();
minus-square@chellomere@lemmy.worldlinkfedilink-5•1 year agoWhy not just use auto (assuming C++) or var (assuming C#/Java)?
minus-square@JakenVeina@lemm.eelinkfedilinkEnglish38•edit-21 year agoBecause that’s type inference. The exact thing the article is arguing against. And that this comment is saying is nice.
I’m just glad that type inference can improve this sort of situation a bit:
ConfigManager configManager = new ConfigManager();
Why not just use auto (assuming C++) or var (assuming C#/Java)?
Because that’s type inference. The exact thing the article is arguing against. And that this comment is saying is nice.