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++…

Advertisements

~ by Luis Abreu on May 29, 2008.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: