Hi Stephan,

I agree agument names would be helpful in the documentation. You can already specify argument names as part of a type signature, just they are optional not manditory:

1
2
3
type ITestArgs = interface
    abstract Plot: x:int -> y:int -> unit
end

Cheers,
Rob

By on 10/27/2007 9:49 AM ()

Hi Robert,

Apparently this syntax also works for the typical tuple arguments in member functions

1
2
3
type ITestArgs = interface
    abstract Plot: x:int * y:int -> unit
end

though it doesn't seem to be documented in the language spec (or I just can't find it). But it is mentioned in the release notes, together with such treasures as optional and named arguments.

Next time I'll just try the obvious syntax... Thanks for the hint.

Stephan

By on 10/27/2007 10:49 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