22
I've created a port of a functional utility library to python
(programming.dev)
it's a really cool proof of concept, and i hope to never encounter it in the wild.
also, why is this organised with one function per file?
Thank you.
Remeda.js was organised like this. How would you organise it?
well... it's a bit hard to say considering that the sort of style this library encourages is pretty unpythonic. if i did something similar i'd probably make a wrapper type that has all the functionality as methods, which would necessarily require compartmentalisation. i'd probably break it up into one file fore everything with related functionality and compose the final type from that.
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023