Bubble-up function attributes to FSharpFunc<_,_>
so they can be used more easily
#17858
Labels
Milestone
FSharpFunc<_,_>
so they can be used more easily
#17858
Is your feature request related to a problem? Please describe.
Hello, hope you're good. I'm taking a look at the available approaches for reading custom attributes from a function definition and eventually found this page from StackOverflow: https://stackoverflow.com/a/65157463/10146684.
The way of doing this, according to this answer from SO, demands the knowledge of the module that the function is defined, which does not really fit my needs.
Then, I thought that it could be more practical if the attributes defined for a specific function were "bubbled-up" to the
FSharpFunc<_,_>
instance, so we can directly retrieve those attributes from it.Disclaimer: I don't know the real impact of this change, but at least in theory I think it makes sense.
Describe the solution you'd like
Replicate the function attributes at the
FSharpFunc<_,_>
instance to make it easier to retrieve this information for functions, using something like:Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: