← Back to context

Comment by gosub

11 years ago

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;
        }

Packages are only too big if your infrastructure makes them too big.

A trig package like yours could be implemented on top of sin and cos packages if it's something you find useful.