• Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Yeah, those look really useful for gamedev or simulations, where you need the speed and don’t particularly care that it’s always the same result…

      • xav@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        2 months ago

        Quick ! Someone should create a floating-point type where basic maths ops delegate to these new things.

  • shape_warrior_t@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 months ago

    There’s a good chance I can make use of str::substr_range on a current project of mine. I’ll be storing some substrings from str::split, and now I can store the original string and ranges of indices into it instead of making an owned string for every substring.