четверг, 14 ноября 2019 г.

What I really need in C#

As for 14.11.2019
  • Every method and property are async by default and awaited by default.
  • Everything immutable by default, with hardcore compile-time optimizations.
  • Current Type generic constraint.
  • Nullable reference types behave like nullable struct types. E.g. HasValue, Value etc. Or vice versa.
  • Generic type inference of the generic type constructor.
  • Type inference for parameters, return types, fields.
  • Something to do with polymorphism hell. (Combination of required parameter names with default values or DTO as parameters.)
  • Dangling comma in parameters list.
  • Compile-time rewriting of the Linq queries to simple foreach, if etc.
  • Microtypes and record types support.

Комментариев нет:

Отправить комментарий