Closed humanchimp closed 7 years ago
Accidentally closed. Reopened.
This is still a thing
Talked about this with @fatih. Seems there are a couple options.
tell
to take either an array of parameters, or a single parameter that is wrapped in an array, e.g.:
kite.tell('square', 4, log)
kite.tell('square', 4).then(log)
kite.tell('pow', [4, 2], log)
kite.tell('pow', [4, 2]).then(log)
kite.tell('square', 4).then(log)
kite.tell('pow', 4, 2).then(log)
kite.tell('square', 4, log)
- WRONGkite.tell('pow', 4, 2, log)
- WRONG
right now the API is a big ugly:
I'd like to remove the unnecessary boxing wherever we can.