• masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    Lol.

    Pushing something onto an array isn’t changing the array? It’s not changing the reference to the array, but from a style standpoint it doesn’t make sense.

    So you’re arguing for writing things as they seem, not the way that computers treat them?

    You’re comment indicates the FE dev obsession with always using const stems from a misunderstanding of how computers work.

    Maybe rethink this.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      A constant inside a function is not constant to the computer. It’s only constant within the scope of the function. So it’s not constant to the computer since every time the function is called the “constant” will have a different value.

      Do you even know what a real constant is?

      You maybe need to rethink some things.