News for hackers. Stuff that matters.
Re:C# 7 Work List of Features by MichaelGG on Thursday April 23, 2015 @08:08AM (#9426114)
It's "awesome" ... yet still many years on behind. These are the kinds of things that should have been in v1 or v2. Things that F# got right from the get-go.

It's great if you have to work on projects that are stuck with C# (but can freely use the latest compiler).

Re:C# 7 Work List of Features by cies on Thursday April 23, 2015 @08:15AM (#9426140)
Given how much MS has invested in Haskell, and how little/late they use that technology to their advantage has made me wonder many times what drives their R&D budget.

Non the less: cool "new" features in C#, and thank you very much MS for investing so generously in Haskell!

Re:C# 7 Work List of Features by rasur on Thursday April 23, 2015 @08:31AM (#9426219)
Do remember, they also have F# which is very much a functional language (in the style of SML or Ocaml)
Re:C# 7 Work List of Features by MichaelGG on Thursday April 23, 2015 @04:10PM (#9429496)
Well remember that the F# team had generics before C#, and they are the only reason the CLR shipped with real generics in v2. So that's a pretty big return, seeing as real generics was a flagship feature difference between the CLR and JVM.
Re:C# 7 Work List of Features by tome on Thursday April 23, 2015 @09:26AM (#9426478)
Do they invest that much in Haskell? SPJ's salary, and previously Simon Marlowe's salary. That's nothing compared to what they actually put money into.
Re:C# 7 Work List of Features by cwyers on Thursday April 23, 2015 @10:35AM (#9426960)
It's a very large investment from the perspective of Haskell, a miniscule investment from the perspective of Microsoft.
Re:C# 7 Work List of Features by tome on Thursday April 23, 2015 @12:22PM (#9427770)
Couldn't have put it better myself! Thank you for understanding my point.
Re:C# 7 Work List of Features by thinkpad20 on Thursday April 23, 2015 @11:18AM (#9427280)
They still have arguably done more for the language than any other major corporation. Saying "they could have done more" seems a little petty.
Re:C# 7 Work List of Features by tome on Thursday April 23, 2015 @12:23PM (#9427783)
Arguably? Almost certainly. That, however, was not my point ...
Re:C# 7 Work List of Features by tome on Thursday April 23, 2015 @12:28PM (#9427835)
Let me clarify. I wasn't responding to cies's second line (Microsoft has contributed a lot to the Haskell community for which we are very grateful) but the first.

It would be a mistake to think that from Microsoft's perspective they feel they have spent enough money to even begin to think about extracting some sort of reciprocal benefit from that.

Admittedly my comment was ambiguous.

Re:C# 7 Work List of Features by cies on Thursday April 23, 2015 @10:59AM (#9427157)
Let's be humble and call it a big investment. :)
Re:C# 7 Work List of Features by M8 on Thursday April 23, 2015 @08:43AM (#9426269)
Don't forget that F# was mostly "forked" from OCAML, while C# was mostly "forked" from Java. So yes, F# got some OCAML features, but it got the weird ML syntax as well.
Re:C# 7 Work List of Features by dtech on Thursday April 23, 2015 @10:01AM (#9426693)
Not only syntax, a lot of the restrictions feel weird for a Java/C#/Scala programmer as well. E.g. functions needing to be declared before you can use them feels like you are coding in C again.

F# probably is a better functional-with-OO-aspects language, but C#/Scala are clearly better OO-with-functional-aspects languages and programmers currently want the latter.

Re:C# 7 Work List of Features by chadzawistowski on Friday April 24, 2015 @10:59PM (#9437004)
I'd argue that restriction of F#'s is actually a feature. Cyclic dependencies are a real beast to reason about, and I like that F#'s lexical scoping means I need to opt-in to mutually recursive functions with `let rec`.

You're probably right that it feels unfamiliar to Java/C#/Scala programmers, but I enjoy the sense of security that F# and other restricting languages provide.

Re:C# 7 Work List of Features by stonemetal on Thursday April 23, 2015 @01:00PM (#9428124)
It started with "weird ML syntax" but they developed a new syntax and migrated to it. It hasn't used the original syntax for a while now.
Re:C# 7 Work List of Features by pjmlp on Thursday April 23, 2015 @09:35AM (#9426524)
It has nothing of weird.