4 ms·
Still looks much less beautiful. Python feels to me like it can't make up its mind.
by Maledictus 2y ago
Still looks much less beautiful. Python feels to me like it can't make up its mind.
- int_19h 2y agoI'll take "properly generalized" over "looks beautiful" any time. At the end of the day, the purpose of the code is to do something, not to be pretty. FWIW you can have both in this case; you just need to make dotted method calls syntactic sugar for global function invocations.
- rakoo 2y agoAnd some will say the exact opposite: contrary to what would seem obvious, code is primarily meant to be read by humans, then written by humans. Because you'll spend way more time unfucking code than actually spitting it.