In general (with F#) the fewer characters the better*. Terseness is

valued more in functional programming than in other languages, because

it tends to make programs more readable.

So, the first declaration is better. It takes a little while in F# to

get used to (a,b) is a tuple, rather an a C style list of function

arguments, but not long.

Apart from applying the "few characters" rule, I personally find the first declaration much more readable.

*note: the fewer characters rule does not apply to identifiers. In F# you should use .Net style identifiers, eg.

1
let BuildMessages (applicants : Applicant list) : MessagePack = 

----------------
and that's post #100 for me :)

By on 2/11/2010 3:16 PM ()

I was sort of hoping for that answer :). Thanks!

By on 2/12/2010 6:14 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper