|
|
|
|
|
by pjmlp
64 days ago
|
|
I equate this language addition to the same mistake that !! was going to be a few years ago, until it got all that discussion threads on Twitter. C# doesn't need to have syntax sugar for every possible use case. Some of the more recent features feel like the outcome of the team pressure to have new language features to announce in November every year. |
|
I understand you feel this is ilke `!!`. We do not. We think being able to amke a dictionary, and pass in a custom comparer is deeply important. Analyzing code out there, we find that this happens in anywhere from 5-10% of all dicts. That is a ton of codebases and users impacted, and we've already heard from many of them about the friction this causes. Simply discarding that group greatly undercuts one of the core value props that collection expressions brings. A uniform and simple syntax that should suffice for nearly all collection needs.
You may feel differently. That's life in the design world :)