• Blue_Morpho@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    And as stated both have their merits and their faults.

    Yes! Just because a compiler could guess the type doesn’t mean it should. Elon didn’t understand the meme at all.

    • AVincentInSpace@pawb.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      why would you not want it to? what circumstance, other than an integer not given an explicit type, could it guess wrong?

      • RepulsiveDog4415@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        Well, if there is nof fixed (explicit or implicit) type it’s imposible for the compiler to optimise your code. Also imho programming with typed languages is way easier because your IDE can recognize function argumentd before you compile/run. I tried python and found it baffling how anyone can get any work done with it :D