Skip to content
The Nexus
TECHNOLOGYMay 26 · 16:50 UTCTHE REGISTER

Microsoft wants safer C# without turning it into Rust

Microsoft aims to enhance C# memory safety by redefining the 'unsafe' keyword, introducing a model inspired by Rust but retaining automatic memory management. Changes include propagating unsafe designations to callers, restricting unsafe scope to individual methods, and making pointer usage non-unsafe unless dereferenced. The updates will be opt-in for C# 16 (2027) and .NET 12, with NuGet badges to encourage adoption.

Nexus surfaces and summarizes. The full story lives at the source.

Mentioned
Spot something wrong with this article?Report a problem →
Forward this