TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Welcome to C# 10

89 pointsby tonicbblekingover 3 years ago

9 comments

t-writescodeover 3 years ago
Oh wow. I do <i>not</i> like that &quot;global using&quot;. It harkens to the auto-loading issues I&#x27;ve had with Rails. &quot;Where was this defined? I dunno! It probably works here, though!!1&quot;<p>I generally don&#x27;t like a random file impacting several other files. Extension methods are ... tolerated and ... &quot;fine&quot; but I still feel unpleasant using them.<p>File-Scoped namespaces seem like someone&#x27;s really, really tired of having nested folders and seems actively unnecessary.<p>I like natural lambda types<p>Good update on parameterless structs. I assumed that&#x27;s how they worked already. I haven&#x27;t used C# in 2 years; but you could do that with classes back when, so I assumed it would be the same with structs.<p>Constant interpolated strings is nice.<p>Extended property patterns is fine, just probably not for me.
评论 #29153016 未加载
评论 #29153527 未加载
评论 #29154179 未加载
评论 #29152866 未加载
评论 #29157046 未加载
评论 #29153539 未加载
pharmakomover 3 years ago
C# is becoming the C++ of managed languages. I wish they would stick to a smaller set of more powerful features… like an earlier C# with hygienic macros or something.
评论 #29153940 未加载
评论 #29154083 未加载
评论 #29153662 未加载
评论 #29153682 未加载
评论 #29160295 未加载
alberthover 3 years ago
Dumb questions: why does it seem like languages always continually add features?<p>Can a language not become &quot;feature complete&quot;, while still improving over time?
评论 #29153908 未加载
评论 #29154098 未加载
评论 #29154407 未加载
yreadover 3 years ago
I like it. Nothing too crazy (well except maybe the return types and attributes on lambdas that could make some ugly code), mostly quality of life improvements and stuff you expected to work in C# 9.
sbelskieover 3 years ago
The most interesting feature here (though included only as a preview) is static abstract members on interfaces, which will make things like generic math possible.
评论 #29162656 未加载
breakingcupsover 3 years ago
Not all of these changes sound good to me. Some sound like very niche cases that I now have to make a decision about when it comes to coding guidelines because there&#x27;s always going to be that one developer in our company who wants to show off, even if it&#x27;s not the right tool for the job.
tmitchel2over 3 years ago
AWS lambda with graviton here I come....
Erlangenover 3 years ago
Is &quot;natural types&quot; a common term used in programming language theory? I haven&#x27;t heard of it before. I tried to search it but found nothing.
quotemstrover 3 years ago
Ugh. So with the new method groups feature, adding a new method overload can break working code even if that code never calls the new overload.
评论 #29153980 未加载
评论 #29154380 未加载