TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Do more with patterns in C# 8.0

29 点作者 lukasLansky超过 6 年前

3 条评论

adossi超过 6 年前
I&#x27;ve been a .NET developer for a decade (a paid one for the last 6 years) and I consider myself a pretty competent C# programmer.<p>However (and maybe I&#x27;m alone here) the property and positional patterns syntax just honestly isn&#x27;t very intuitive to me. It may be that because its a new feature it is just alien to me but nonetheless it is really hard to immediately discern what is happening in those examples without having read the descriptions that accompany them. I&#x27;m worried C# is on an ever-creeping path to looking like an alien language, as is (in my opinion) what is happening to C++ (e.g.: C++14 and C++17 features).
squirrelicus超过 6 年前
I love seeing my favorite language get this constant attention.<p>Now all we need is structural typing like golang so I don&#x27;t have to explicitly tell the compiler that a class implements an interface.
imranhou超过 6 年前
It looks like this one is sacrificing readability for unnecessary terseness.