Structs are marginally faster at runtime than classes , due to optimisations done by the compiler. You can enforce full immutability. If you declare a struct instance as let, you will not be able to change its properties.
Structs are marginally faster at runtime than classes , due to optimisations done by the compiler. You can enforce full immutability. If you declare a struct instance as let, you will not be able to change its properties.