Comment

Comment by HideousKojima

>you can avoid heap allocations but that would be unidiomatic

AFAIK until recently (with the introduction of the Span<T> types), the only way to avoid heap allocations for arrays or any other kind of collections in C# was with stackalloc, which is unsafe.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton