News for hackers. Stuff that matters.
Re:F# 3.1 as C# 6.0 Strict Mode by seanmcdirmid on Saturday March 01, 2014 @09:13AM (#7324245)
Type inference is not an exclusive feature of FP languages, though there is no known system that can deal well with nominal subtyping (scala makes a good go at it, but only locally).
Re:F# 3.1 as C# 6.0 Strict Mode by judk on Saturday March 01, 2014 @11:19AM (#7324738)
What would you say is the usefulness and value of local inference vs global inference?

In my experience, local inference eliminates a lot of boilerplate and clutter, while global inference isn't so important, because writing types is good documentation as you zoom out from the details of functions.

Re:F# 3.1 as C# 6.0 Strict Mode by _random_ on Saturday March 01, 2014 @12:44PM (#7325235)
It also emphasizes the importance of good tooling support: when using global inference it would be cool to always show the inferred types as a little semi-transparent text on the top...
Re:F# 3.1 as C# 6.0 Strict Mode by seanmcdirmid on Saturday March 01, 2014 @09:47PM (#7327465)
Global type inference is the ultimate goal, local type inference is the compromise.

Global type inference would generate documentation automatically, to some extent.