4 ms·
You might also mention the struct update syntax, which is really neat in relation to immutable structures: let jack = Person{name:"Jack", age:26}; let
by pedantic-fool 7y ago
You might also mention the struct update syntax, which is really neat in relation to immutable structures:
let jack = Person{name:"Jack", age:26};
let jack_jr = Person{age: 1, ..jack};