3 ms·
Python's `__dict__` is probably a better example of duplicating Haskell's `derive Show` behavior.
by wting 13y ago
Python's `__dict__` is probably a better example of duplicating Haskell's `derive Show` behavior.
- Peaker 13y agoWhy? __repr__ (or __str__) is pretty much the "show" method, in Python. It isn't derivable (or rather, the default derivable one is useless), though.