Live data from Hacker News

What's New in C# 6.0 [video]

channel9.msdn.com

11–20 of 145 posts

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

#11
Still hoping they add the !(non-nullable) operator.

I know its hard http://blog.coverity.com/2013/11/20/c-non-nullable-reference...

But dang I would appreciate it. So much code is cluttered with null checks that increases the robustness of the code at the cost of correctness, readability, and poorly defined behavior.

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

#13
I'm going to take some hits for that but... with .NET being open source (never liked Mono..) and all..

I'm tempted to use C# in the future again. Using it on Windows has always been good - and now that it compiles to native code too and that the libs are open....

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

#15
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.

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

#16
post #13

I'm going to take some hits for that but... with .NET being open source (never liked Mono..) and all.. I'm tempted to use C# in the future again. Using it on Windows has always been good - and now that it compiles to native code too and that the libs are open....

I thought that native compilation was only for "Windows Store" apps. Do they now have that available for regular Windows desktop apps too (or more importantly, server-side Linux apps)?

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

#17
post #4

Seems like a small change but that nameof(argument) method for ArgumentXExceptions is incredibly handy.

Gosu has a feature called feature literals [1] giving you access to the reflection information so you can write something like Customer#Address.PropertyName or Customer#Address.PropertyType but I am not sure how much of that is evaluated at compile time.

[1] http://devblog.guidewire.com/2011/03/03/feature-literals/

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

#18
While all of the changes look nice in terms of writing less code, they are the kind of syntactic sugar I learned to hate in CoffeeScript. Mostly because the code was so much denser and harder to read. Especially when reading other people's code.

As I write more and more code, the more I want simplicity and ease of understanding over typing a few less characters or having more elegant code.

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

#19
post #6

Being able to use await in catch and finally must have been incredibly hard to implement for them. Especially in the finally part. I mean - I'm saying this as somebody who hasn't done a lot of C# or .NET work in the last few years, but think about what you would have to do if you had to implement this in a safe and bug-free way.

Given that the 'vanilla' async-await isn't always safe/bug-free, I can't imagine that the harder version will be.

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

#20
Nothing not to love -- a whole bunch of syntax sugar that makes code cleaner without messing around with core concepts that breaks code conceptually. It's also great to see how quickly good ideas permeate the language landscape today versus ten years ago (or maybe it's just good ideas finally permeating the landscape all at once).
Post reply on HN