All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Microsoft plans memory safety improvements for C# inspired by Rust, without dropping automatic memory management

By

Tim Anderson

3d ago· 4 min readenNews

Summary

Microsoft's .NET team is planning to improve memory safety in C# by introducing a new model and redefining the 'unsafe' keyword, drawing inspiration from Rust's safety features while maintaining automatic memory management. The goal is to make C# a language known for type- and memory-safety enforcement, without forcing developers to give up the convenience of garbage collection.

Key quotes

· 2 pulled
We envision a future where C# is among a set of languages chosen and noted for the type- and memory-safety enforcement.
Many C# developers never use unsafe, but it has been part of the language from its first release.
Snippet from the RSS feed
Unsafe bits get a warning label in planned low-level coding shake-up

You might also wanna read