Hacker News new | ask | show | jobs
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.

1 comments

There isn't any such pressure. These features only happen because someone goes out of their normal job space to push for the necessity for them. All of the design team have full time work on other things. The design and impl only happens if the whole team can be convinced that it is important and worth investing in. Note that a lot of that convincing goes from the tons of feedback we get everywhere. This is anywhere from github, to partners (first, second, third), to conferences, forums, hacker news etc. etc. etc. We have tons coming in constantly. We pick these items up and spend this time on it precisely because we've seen the problems, and how it is affecting the ecosystem, and our future goals there, and we think it is then worthwhile.

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 :)

Well, your employers are the opinion language sugar doesn't matter in the CoPilot agentic world, so there is that.

As such my opinion remains that in such context saving keystrokes isn't that high priority, when agents do the actual work.

Thanks for replying, though.