• flying_sheep@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I think this is where safety and performance are actually in conflict.

    I think guaranteeing a panic leads to much worse code gen in this case.

    • FizzyOrange
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Yes that’s true, but the point is you should have to opt in to surprising or risky behaviour.