Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Object expressions to have attributes applied to them #288

Open
baronfel opened this issue Oct 14, 2016 · 0 comments
Open

Allow Object expressions to have attributes applied to them #288

baronfel opened this issue Oct 14, 2016 · 0 comments

Comments

@baronfel
Copy link
Owner

Allow Object expressions to have attributes applied to them [6108807]

Submitted by Dave Thomas on 6/27/2014 12:00:00 AM
4 votes on UserVoice prior to migration

In the simplest case something like this would be possible:
[]
let makeResource name =
{ new System.IDisposable
with member this.Dispose() = printfn "%s disposed" name }
And then when the code is compiled the expression thats generated would also have the attribute applied to it.
This would interoperability with frameworks that use declarative attributes which would otherwise require adding a full type

Original UserVoice Submission
Archived Uservoice Comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant