Closed pvorona closed 6 years ago
@pvorona The use of Object.keys
instead rest parameters, it was because at written time we was compatible with previous versions of node 6 also. Now there is no reason.
You also changed from function
to a lambda () =>
in your example. I remember we had a reason to maintain function
probably due lack of lambda own scope, but honestly I can't remember right now the reason. If we remove this also and tests pass, a PR to update this code is welcomed.
@leonardiwagner Thanks for very fast reply. Tests are OK https://github.com/z-pattern-matching/z/pull/29
Hello, I've been browsing through source code trying to understand how the thing works and got question considering following function:
Could you explain why is it using Object.keys / arguments instead of using rest args?
I cant find any test explaining this thing.