Records
Points clés
type Point = { X: float; Y: float }
type Coordinate = { Latitude: float; Longitude: float }
type ComplexNumber = { Real: float; Imaginary: float }Déclaration
type PostalAddress = ┆ type PostalAddress =
{ Address: string ┆ {
City: string ┆ Address: string
Zip: string } ┆ City: string
┆ Zip: string
┆ }
┆ member x.ZipAndCity = $"{x.Zip} {x.City}"Instanciation
Déconstruction
Inférence
Pattern matching
Conflit de noms
Modification
Différences C♯ / F♯ / JS
Limites 🛑
Record struct
structMis à jour