3 ms·
> Especially how Rust enums and structs make it easy to define new types to guide your programs are a highlight for me. In recent versions Python got some nice
by Rotareti 9y ago
> Especially how Rust enums and structs make it easy to define new types to guide your programs are a highlight for me.
In recent versions Python got some nice improvements in this area, with the new way of creating NamedTuples, Data Classes and the typing module. I wrote a stackoverflow answer recently that sums it up, if anyone is interested:
https://stackoverflow.com/a/45426493/1612318 https://stackoverflow.com/a/45426493/1612318