• @[email protected]
    link
    fedilink
    397 months ago

    I’m just glad that type inference can improve this sort of situation a bit:

    ConfigManager configManager = new ConfigManager();

    • @chellomere
      link
      -57 months ago

      Why not just use auto (assuming C++) or var (assuming C#/Java)?

      • @[email protected]
        link
        fedilink
        English
        38
        edit-2
        7 months ago

        Because that’s type inference. The exact thing the article is arguing against. And that this comment is saying is nice.