Programmers can answer all existential questions with ease

  • _NoName_@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Imagine if you saw someone who looked exactly like you and mimicked your exact actions, but they were just 3 or 4 feet to the left of you. That’s by reference (I think)

    Contrasting an exact copy of you that can think for itself and has autonomy, which is by value (I think)

    • derfl007@lemmy.wtf
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      By value could be described as, the exact same as you at the time of cloning, but it will be its own object and in no way connected to your actions.

      Whereas by reference would be exactly what you described