Y
Hacker News
new
|
ask
|
show
|
jobs
by
pedantic-fool
2582 days 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};