Replies: 3 comments 4 replies
-
This seems to go against relaxation of For the same reason, reading/writing to a field shouldn't require an unsafe context.
|
Beta Was this translation helpful? Give feedback.
-
For nullability, there are also a bunch of attributes that are directly integrated into the language. The unsafe classification doesn't seem to be as straight like nullable references. What if we want to categorize the unsafe-ness in the future? Attribute feels more extensible, but not as complex as generic constraints.
What about wrapper methods that transforms the parameters of a core
It's seamless for transforming existing codebase, since |
Beta Was this translation helpful? Give feedback.
-
|
Glad to see you’re going with an attribute. Changing existing syntax to have a different meaning would’ve been a disaster. I don’t think using an attribute makes C# “feel” less memory safe. Unsafe is already an extremely niche feature used on a tiny fraction of C# codebases. Also designing languages based on human readability is probably in its twilight anyhow. LLMs will be reading and writing almost all code before long. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2026/LDM-2026-01-26.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions