Bèr Kessels 🐝 🚐 🏄 🌱 on Nostr: npub1kpwlx…xxzz4 npub1srml6…usmxm it hardly makes theoretical difference. But the ...
npub1kpwlxpzkxfmuxjmzc2wp3rf9vjg0sgydmlhsnrgqr3maf59h86qqdxxzz4 (npub1kpw…xzz4) npub1srml6uclqz6gejnue249my5jy96aqfr9rvmfs2eyn4s02xmds0sqxusmxm (npub1srm…smxm) it hardly makes theoretical difference.
But the ergonomics and the communication are very different.
Ergonomics: Many other methods in python act 'on the thing' (str.capitalize() etc). So it's inconsistent.
Chaining isn't possible: thelist.map().filter().sort().reduce() vs reduce(sort(filter(map(thelist))). Gets worse with multiline lambdas.
Comms: custom classes can have iterator methods implemented (ie a custom .sort()) But they cannot introduce global methods.
But the ergonomics and the communication are very different.
Ergonomics: Many other methods in python act 'on the thing' (str.capitalize() etc). So it's inconsistent.
Chaining isn't possible: thelist.map().filter().sort().reduce() vs reduce(sort(filter(map(thelist))). Gets worse with multiline lambdas.
Comms: custom classes can have iterator methods implemented (ie a custom .sort()) But they cannot introduce global methods.