• MajorHavoc@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Some would say that until you’ve played “guess whether my clone still points back to the original object” in JavaScript, you’ve never really lived.

    That said, I understand I’m supposed to start using TupeScript for that, so I’ll shut up about it.

    • DarkenLM@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Oh, yeah. When people discover shallow clone vs deep clone is when shit hits the fan. Though anyone that comes from a C background shouldn’t fall on those traps either way.