3 ms·
As someone who’s written a lot of Python I understand where you’re coming from, but I generally think of it the other way around: why does Python lack the abili
by FridgeSeal 8y ago
As someone who’s written a lot of Python I understand where you’re coming from, but I generally think of it the other way around: why does Python lack the ability to create lightweight structs that a lot of other languages have and I often find exceedingly useful (I mean I know why, dynamics and duck typing and all that).
Creating a whole class just to neatly carry around a few related values always felt like a very “heavy” solution.