• qprimed@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 hours ago

    skipped a few steps there i think.

    thanks for the considered reply. didn’t mean to jump all the way down to electrons and sound so flippant.

    my claim is that JavaScript arrays are arrays because the spec defines their behavior as such. the implementation details are absolutely interesting from a performance perspective and I was genuinely curious how an internally linked list implementation would actually work, real-world. regardless… almost every interaction I have ever had with a JS programmer has ended in “its strings all the way down”… so… I mean… yes-ish?

    loved your poking of the hornets nest in this thread :-)

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      i was thinking between the linked list and the transistors :)

      also, i mean… what you might call an array i might call a vector. js arrays allow elements of different types, so they are by definition not arrays in the traditional sense. them being chars internally does make sense in a gross way.