• Denys Nykula@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    Then where do you see the house of cards? What’s the practical difference between == and ===, when your app is type-checked and the inputs are safely parsed?

    • NateNate60@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Because you don’t know whether you’ve actually type-checked everything and that your inputs are safely parsed. Part of defensive programming is to adopt multiple defences to prevent bad data from getting through, including avoiding ==.