|
|
|
|
|
by foldr
1203 days ago
|
|
>Dropping field names from definitions like Go would make the syntax inconsistent with destructuring and pattern matching There's no reason you couldn't match on struct fields positionally as well. It would actually be quite convenient for cases like struct Point { x: f64, y: f64 }. |
|
Side note: matching f64 by value isn't a good idea either way, is deprecated and will become an error in the future.