Replies: 2 comments 1 reply
-
Yeah, interop with C# records (both ways) is definitely something we should do. RFC would be great. Some things we want to cover are init-only properties, cloning ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
@dnperfors Yes, we need to make progress on this. Starting an RFC outlining all the issues would be great |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
C# 9 included support for records and the
with
keyword to make a copy of the record with some changes. Functionally this is similar to how F# works with records. What I am missing is a way to use F# records in C# using thewith
keyword and a way to use C# records in F#.Changing this would (probably) mean that F# records are compiled slightly differently (for example, I think the
'<Clone>$'
clone method should be outputted in the IL). Is this something worth investigating and making a proper RFC for?Beta Was this translation helpful? Give feedback.
All reactions