SuperFola to Programming [email protected]English • 8 months agoType inference was a mistakeborretti.meexternal-linkmessage-square46fedilinkarrow-up168arrow-down111
arrow-up157arrow-down1external-linkType inference was a mistakeborretti.meSuperFola to Programming [email protected]English • 8 months agomessage-square46fedilink
minus-square@[email protected]linkfedilink39•7 months agoI’m just glad that type inference can improve this sort of situation a bit: ConfigManager configManager = new ConfigManager();
minus-square@chellomerelink-5•7 months agoWhy not just use auto (assuming C++) or var (assuming C#/Java)?
minus-square@[email protected]linkfedilinkEnglish38•edit-27 months 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.