2 ms·
Thanks, I didn’t know about the expanded use of refs. As the other commenter pointed out, the version of C# used in Unity is out of date by a version or two, an
by t8sr 5y ago
Thanks, I didn’t know about the expanded use of refs. As the other commenter pointed out, the version of C# used in Unity is out of date by a version or two, and so is my experience.
- ygra 5y agoConsidering we're close to C# 10 by now, it's ... a few more versions ;-) Hard to blame Unity here, though. They have written their own compiler backend that converts CIL to C++ and that was back in the .NET Framework days when performance wasn't that high a priority for language and framework design.
- kevingadd 5y agoTheir transpiler would probably be up to date if they open-sourced it, since plenty of other people would be using it. Instead people are stuck using CoreCLR's AOT backend or other closed transpilers like BRUTE. Their transpiler also had a lot in common with ones for other targets (I know for a fact that in the past it used to be very similar structurally to JSIL) which probably improves the likelihood that they would have been able to leverage community knowledge and contributions here. It's understandable though that they want their transpiler and C#->shader compiler to be their secret sauce, though, since they see them as unique advantages over Godot, Unreal, etc.