May 29

F# first impressions

Posted in Trivia      Comments Off on F# first impressions

Well, I should really say: first and last impressions! I”ve read about 200-230 pages of the Expert F# book and I think I”ve had enough. Ok, functional languages have really cool concepts like patterns, asynchronous workflows, first class support for functions, etc, BUT…the damn thing is simply unreadable! Just look at this sample:

let rec last l =

   match l with

   | [] -> invalid_arg “last”

   | [h] -> h

   | h::t -> last t

so, be honest: can you really read this and understand what it does? Well, now I can, but I think I”ve seen enough indentations for a lifetime…seeing all these F# snippets just made me want to go back to C++…