Using static classes as namespaces addresses something I was just complaining about a week ago. Let's take it a step further! Just let us put bare functions in namespaces without the dance of the static class.
What's New in C# 6.0 [video]
41–50 of 145 posts
Re: What's New in C# 6.0 [video]
#42Lots of little things but they're pretty handy. I wish I still wrote in C#; perhaps that day will come when they start distributing the .Net runtime on Linux / Mac OS X.
Re: What's New in C# 6.0 [video]
#43It all looks really promising. Love it. I'm a little worried about "nameof" in the hand of amateur programmers though. Efficiency aside (because it's not efficient), code readability might take a hit.
Re: What's New in C# 6.0 [video]
#44You can also view a summary of the video/features as a presentation: https://view.officeapps.live.com/op/view.aspx?src=http%3a%2f...
Anybody have a pdf version?
Re: What's New in C# 6.0 [video]
#45Re: What's New in C# 6.0 [video]
#46It all looks really promising. Love it. I'm a little worried about "nameof" in the hand of amateur programmers though. Efficiency aside (because it's not efficient), code readability might take a hit.
nameof(foo) "foo"
Efficiency doesn't change
Re: What's New in C# 6.0 [video]
#47Re: What's New in C# 6.0 [video]
#48Interestingly, if you'd like to check out how some of these features were implemented, you totally can. Roslyn is open-source ( http://roslyn.codeplex.com/ ). That being said, I hope that all the open-sourcing is going to make it available where I really want to use it - Unity, for instance. (Disclaimer: I'm an open source dev @ Microsoft)
I was hoping Unity would start loosing some market due to outdated Mono. I guess we are in for another github-like "monopoly".
And we'll see how long it takes Unity to actually support the current C#. My guess would be a couple years, since Unity 5 isn't even out yet, and there's usually 18 months between major releases.
Re: What's New in C# 6.0 [video]
#49It all looks really promising. Love it. I'm a little worried about "nameof" in the hand of amateur programmers though. Efficiency aside (because it's not efficient), code readability might take a hit.
As others have said, I'd therefor expect this to be a purely compile-time feature that just inserts the name of the reference within. The whole reason for this keyword seems to be that you have no string ("foo") but a reference/name instead (foo). Which can be picked up easily by tools.
Re: What's New in C# 6.0 [video]
#50Lots of little things but they're pretty handy. I wish I still wrote in C#; perhaps that day will come when they start distributing the .Net runtime on Linux / Mac OS X.
Crazy, that will never happen :)