3 ms·
This is the thing that got me off OO altogether. Typical OO code is hard to call from the REPL. You have to know what objects to construct before constructing a
by gruseom 15y ago
This is the thing that got me off OO altogether. Typical OO code is hard to call from the REPL. You have to know what objects to construct before constructing an object that has the method you want to call, which probably requires more objects to be constructed and passed as args, etc. Yet more often than not the function in question is simple enough that it ought to be easy to call without all that baggage. That got me so annoyed that I finally just started making all my functions easy to call from the top level and never looked back. You're right that this leads to better designs.