Hi Allen,

Yes, this is correct. The indentation syntax allow you to write sequential elements without semi-colon separation. This applies to all semi-colon separated constructs in the language, e.g.

1
2
3
4
5
6
7
8
 

let f x =

    printfn "hello"   // note, no semicolon here

    printfn "world" 

Also for records. The spec for the indentation syntax is available on the F# website.

Kind regards

Don

By on 7/9/2008 7:41 PM ()

Hi, don. Thanks for your quick response which makes things clear.

By on 7/9/2008 9:06 PM ()
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