The C# programming language has always had a reputation as boring and only used for corporate enterprise applications. To win over the hearts and minds of today's youth, a series of proposals have been added to the GitHub project holding the C# spec. Microsoft has said they plan to add these in time for C# 15, to be released in November 2026.
The proposals would add the following keywords:
looksmax: This will disable code formatters in C# files. It means the code looks the best it can look, so tooling shouldn't change it.unc: The first unit test feature added directly to the language will to mark flaky unit tests, which should be re-run until they pass. It's expected every unit test framework can use this feature instead of using their own implementation, since it's the one use case they all need to enable.chopped: Exceptions can be caught and handled in atry{}catch{}block. But in some cases you need an exception that can't be stopped by acatch{}. This is useful for fatal errors an application can't recover from. Used like:throw chopped MyFatalException(). This proposal also includes the newChoppedExceptionbase class.chud: This will be used with a new compatibility layer allowing C# to call directly into Rust code. Thechudkeyword is used call Rust methods.sigma: Similar toclassandrecord, the newsigmakeyword will be used for a union data type. It's noted this is the most likely proposal to be dropped before release because the team doesn't want to add unions.
