I suggest we ...

Record types can be marked with the Struct attribute

A simple idea, record types can become structs; effectively, allowing record types to have the performance characteristics of structs.

Example:

[<Struct>]
type Vector3 = { X: float32; Y: float32; Z: float32 }

64 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Will Smith shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

9 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

F# Language

Feedback and Knowledge Base