New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(req, res) signature #69
Comments
since we're doing app.use(function* (req, res) {
assert(this.request === req);
assert(this.response === res);
}) because doing |
possible implementation: koajs/compose#1 variable arity would be pretty simple to do if we compose this way. |
the one thing I like about not using arguments at all is that it frees up args for stuff like koa-route parameters. which could still use this.request but then it kind of diverges more from other koa related code, but definitely worth a consideration it does look better than hopefully we don't even use those very much in every-day koa code, it just gets awkward with a few of those properties we had. On the other hand I'm totally cool with just doing |
hmmm i'm actually liking doing |
yeah might as well close for now I don't have super strong opinions on it, keeps the signature nice and clean :D |
reopening a clean issue. references: #34 #36
The text was updated successfully, but these errors were encountered: