Records
Records: key points
type Point = { X: float; Y: float }
type Coordinate = { Latitude: float; Longitude: float }
type ComplexNumber = { Real: float; Imaginary: float }Declaration
type RecordName =
{ Label1: type1
Label2: type2
... }Formatting styles
Styles comparison
Criterion
Best styles 🏆
Styles configuration
Members
Single-line style
Multi-line Cramped and Aligned styles
Multi-line Stroustrup style
Construction: record expression
Deconstruction
Inference
Pattern matching
Name conflict
Modification: copy and update
Copy and update: C♯ vs F♯ vs JS
Copy and update limits (< F♯ 8)
Copy and update: F♯ 8 improvements
Last updated