5 ms·
This is my default python design pattern for quick projects. Just treat everything like a dictionary, EVERYTHING.
by jlangemeier 7y ago
This is my default python design pattern for quick projects. Just treat everything like a dictionary, EVERYTHING.
- fiddlerwoaroof 7y agoI think this is basically the best feature of Clojure: its defrecord form creates a new class but that class implements all the interfaces necessary to treat it like a dictionary.
- jayd16 7y agoWell, to be fair that's almost just idiomatic python.
- carapace 7y agoYeah, in Python everything is a dictionary: namespaces, classes, instances. ;-P
- deleted 7y ago[deleted]