Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To allocate things on stack you have to either use only value types or use unsafe code. Which is fine for small performance critical sections but will introduce bugs and hinder productivity much if used for large code bases.


You no longer need unsafe to stack allocate if using one of the Span types.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: