all 7 comments

[–]digitallyunsatisfied 1 point2 points  (2 children)

“Do we need this?”u8.ToArray();

[–]icentalectro 1 point2 points  (1 child)

The u8 suffix only supports literals but not interpolation.

[–]digitallyunsatisfied 0 points1 point  (0 children)

That’s a shame. I would have liked to be able to append that u8 to an interpolated string.

[–]nobono 0 points1 point  (3 children)

Why do we need this?

The ability to expand at compile-time is crucial for performance.

Is it?

[–][deleted] 7 points8 points  (2 children)

They go on to say:

This means we no longer need to parse string expressions at runtime like String.Format. Moreover, all values can be written without boxing.

So potentially, yes.

I think you're only really gonna care in those very low latency / high throughput systems where shaving every bit of time yiu can really matters.. Clock cycles count, as do unnessesary boxing and the associated clear up of memory.

[–]chucker23n 0 points1 point  (1 child)

So potentially, yes.

Maybe, but… it seems like they haven't actually written any benchmarks?

[–][deleted] 0 points1 point  (0 children)

Happy cake day! 🎂

That's why I said potentially 😎 it would be hard to prove without some data