Don Syme wrote a paper on F# Formatting Conventions some time back. I am pretty sure that it is mostly current; it should help explain the fundementals as well as overall style.

By on 5/15/2008 7:16 PM ()

Don Syme wrote a paper on F# Formatting Conventions some time back. I am pretty sure that it is mostly current; it should help explain the fundementals as well as overall style.

Thank you, that's very useful. I notice though that the paper doesn't mention any of the specific problem cases I stumbled upon :-|

Oliver

By on 5/16/2008 2:17 AM ()

Don Syme wrote a paper on F# Formatting Conventions some time back. I am pretty sure that it is mostly current; it should help explain the fundementals as well as overall style.

Thank you, that's very useful. I notice though that the paper doesn't mention any of the specific problem cases I stumbled upon :-|

Oliver

Hi Oliver,

Thanks for reporting this.

The F# team have recently put a bunch of work into improving the generic "Syntax Error" messages. We've made great progress here, though unfortunately the results won't be available until our first CTP (mentioned here).

Could you send an example of the problem you mention with the "inherits" keywrod?

The formatting of "new" is fairly rigid, though in truth we recommend that people use the implicit class syntax (e.g. see here for an example and here for the release notes where this was first described). The use of the explicit construction syntax is occasionally needed for compiler generated code and is used quite a bit in older F# samples.

Please do continue to post examples. We made a very deliberate decision when we first designed #light 15 months ago to start of strict and rigid, and then look at allowing some relaxations. This was to make sure we could but the finishing touches on the design without breaking people's code. We are now in the process of doing that as part of the F# productization, so if you feel there are particular problems now is the time to report them.

Kind regards & thanks again,

Don

By on 5/20/2008 4:08 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