Live data from Hacker News

What's New in C# 6.0 [video]

channel9.msdn.com

41–50 of 145 posts

Re: What's New in C# 6.0 [video]

#41

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.

F# module == C# static class. What is the problem?

Re: What's New in C# 6.0 [video]

#43
post #30

It 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.

It shouldn't have any efficiency implications. I have to imagine that it is interpreted at compile time, similar to the var keyword.

Re: What's New in C# 6.0 [video]

#45
post #29

i love the new "?." similar to coffeescript. definitely make our lives easier.

I knew I'd seen that somewhere before, good call. There's a lot of things in coffeescript I'd love to see in other languages.

To be fair, the first time I saw this was in Groovy, almost ten years ago.

Re: What's New in C# 6.0 [video]

#46
post #30

It 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.

It's syntactic sugar, semantically equivalent:

nameof(foo) "foo"

Efficiency doesn't change

Re: What's New in C# 6.0 [video]

#47
post #2

You can also view a summary of the video/features as a presentation: https://view.officeapps.live.com/op/view.aspx?src=http%3a%2f...

Can't get past slide 4 (blue spinning ball on the cursor, yay Office Live). Anybody have a pdf version?

yeah that happened to me on Chrome. Try IE.

Re: What's New in C# 6.0 [video]

#48

Interestingly, 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".

Nah, it won't have a monopoly. UE4 is a big deal for a lot of reasons, particularly its graphical quality. It's not the friendliest for indie devs at the moment, but it's been evolving and improving very rapidly.

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]

#49
post #30

It 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.

He explains that this is for refactoring.

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]

#50

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

https://news.ycombinator.com/item?id=8595905
Post reply on HN