by oaiey · 4y ago · 0 comments
It is basically: if we introduce it, it gives us a tiny benefit for a gigantic amount of noise during every single code review. It boils down to comparing developer productivity vs. language safety.
I find the argument a bit weak since code review guidelines can end this conversation AND C# has already quite some code analysis code fixes to auto-fix language usage stuff (like file scoped namespaces or nullability checks). And that case of const and readonly can be algorithmically checked.
But there are other groups at Microsoft which keep them on track with their real needs.
I suppose you can emulate it today with variable prefixes/suffixes and check the AST with a custom linter yourself