• humbletightband@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    9 个月前

    Yep, thanks for correcting me. In fact, if they write something like

    if (day.isWeekend) {...}
    

    The block will never be executed with the old version of library

    • shastaxc@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      9 个月前

      Yeah that’s exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn’t match his library version.

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        9 个月前

        My dude, you need to understand that all that anger and resentment, it is not you. It’s the years of JavaScript poisoning your mind.

        In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.