Functions are too small to make into a package and dependency. Pure functions don’t have cohesion; they are random snippets of code and nothing more. Who really wants a “cosine” dependency? We’d all really like a “trigonometry” dependency instead which encompasses many “tricky” functions that we don’t want to have to write ourselves. This is a pretty weak argument. What is "cohesion" and why do we care that modules h…
I would retort with: Packages are too big to make into a functional dependency. In the end, in this functions-as-dependencies world, a trig package would be something like: (name) => switch (name) { case 'sin': (x) => sin(x); break; case 'cos': (x) => cos(x); break; }
A trig package like yours could be implemented on top of sin and cos packages if it's something you find useful.