4 ms·
I'm a bit confused by this post, the 'enums' in rust are actually 'algebraic data types' and not enumerations like what the author is showing in python. the cod
by leshow 10y ago
I'm a bit confused by this post, the 'enums' in rust are actually 'algebraic data types' and not enumerations like what the author is showing in python. the code here isn't really very equivalent and if anything just shows how much less expressive python is than a language which has proper algebraic types.