|
|
|
|
|
by cmrdporcupine
947 days ago
|
|
Not nearly as expressively though. You can destructure a struct, but you can't express alternatives on anything but an enum. Languages like F#, Scala, Haskell support more ways of creating ADTs than the kind of enums that Rust has. |
|