-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Use looser callable
type in place of Closure
#378
Comments
Have you considered using |
Yes that's possible, but why not use a looser and 100% compatible type? AFAICT the code does not use characteristics only available to |
Duplicate of #231 (and also, with first-class callable syntax, which creates closures, this is even simpler now than what I previously suggested) |
I've laid out my reasons for requiring closures here: #321 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it be possible for Collection methods to typehint for
callable
instead ofClosure
so I can pass non-anonymous functions to the methods?The text was updated successfully, but these errors were encountered: