gusty / FsControl

[ARCHIVED] FsControl in now included in FSharpPlus https://fsprojects.github.io/FSharpPlus
Apache License 2.0
105 stars 16 forks source link

Review extension methods. #55

Closed gusty closed 7 years ago

gusty commented 9 years ago

By adding a few attributes we add the possibility to use some methods from C# and F#. However in order to use them:

Another issue is than when the containing namespace is opened you see many methods, some of them will not work in C# but it displays everything. I think that's really annoying but an alternative is to remove the extension attribute of the generic methods.

Perhaps extension methods belong to a different project, F# extension methods are already being defined in F#+ so for C# we can create a C#+ project and put them there, adapting the function arguments, there will be a lot of boilerplate code in that project but to the outside world will be clean.

gusty commented 7 years ago

Extensions method didn't prove to be useful, at least to me. In any case if this library will be used or eventually merged with FSharpPlus, there will be extensions in the individual modules (Seq, List, etc).

gusty commented 7 years ago

UPDATE

This library was merged with FSharpPlus and upgraded to use F# 4.1 where optional arguments are recognized, so the second issue mentioned is no longer an issue.

gusty commented 7 years ago

This issue was moved to gmpl/FSharpPlus#42