Monday, 18 June 2007

Foundations of F# (review)

We just received our complimentary copy of Robert Pickering's excellent book "Foundations of F#".

This is the first book to cover the F# programming language from Microsoft. Robert has done an excellent job with this introductory book aimed at programmers with backgrounds in object-oriented or dynamic languages. The book covers various aspects of the .NET platform, object-oriented interoperability with existing libraries and some of Microsoft's more recent innovations, like LINQ.

"Expert F#" by Don Syme (the creator of F#) should be the next book published on F# later this year, followed closely by our own "F# for Scientists".

4 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...

I'm a little disappointed with this book... a lot of the sample code doesn't even compile :(

Jon Harrop said...

I'm sure if you ask the author he'll put working versions up on his site for you.

Which parts are you having difficulty with?

Anonymous said...

IS THE FOLLOWING EXCERPT FROM PAGE 26 IN THE SECTION ANONYMOUS FUNCTIONS CORRECT?

The following example shows two functions that are created and then immediately applied to arguments so that the identifier x holds the result of the function rather than the function itself:

#light
let x = (fun x y -> x + y) 1 2

IT SEEMS TO ME THAT ONLY ONE FUNCTION IS APPLIED TO ARGUMENTS AND THAT THE IDENTIFIER x HOLDS THE RESULT OF THE FUNCTION WHICH IS ITSELF THE SECOND FUNCTION.