• Corngood@lemmy.ml
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    11 months ago

    I’m sure a lot of work went into this, but it seems crazy that we need another way to initialise collections, and another way to make fixed sized arrays.

    I just want less boilerplate.

    • eluvatar@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      I think for arrays it’s not really a benefit. But for other types it’s superior, compared to the current syntax which just calls add on the list object, which is very inefficient compared to building the whole thing at once which is what this new syntax does.