Hacker News new | ask | show | jobs
by nick_ 974 days ago
But we can already do `Span<int> ints = stackalloc int[5];` without using `unsafe`. The array size doesn't even have to be const in that example. They could have just made an optimization when a const is supplied for locals, and then use the existing fixed array syntax for members.

It seems to me the budget for C# lang dev is way down. This seems like it was implemented this way so they didn't have to change many internals.