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

Just a note, this is mainly an Unity problem as they use an old Mono compiler and runtime. Additionally lambdas only create garbage when you capture local variables, and the normal GC is optimised to run without you noticing collections.

The latest C# also has a whole library dedicated to functional data structures [1]. Additionally the C# compiler was rewritten in a functional style (proving it's capability IMO) and is completely immutable. It made sense for their use case as they can pass the syntax tree around to other threads now without fear of it changing.

[1] https://www.nuget.org/packages/System.Collections.Immutable



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

Search: