idg10.bsky.social
idg10.bsky.social
@idg10.bsky.social
So why exactly did C# 12.0 add a language feature that looks a lot like a thing we could already do?

endjin.com/blog/2025/04...
C# 12.0: ref readonly | endjin
C# 12.0 adds a new way to annotate parameters: ref readonly. This seems like it should mean exactly the same as the older in annotation. This post explains why this new syntax is useful.
endjin.com
April 16, 2025 at 7:00 AM