-
Notifications
You must be signed in to change notification settings - Fork 8
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
Keyword arguments for chunks
?
#19
Comments
And since I mentioned chunks(array; n=8, dist=:scatter) |
(I'm bringing these things up now because #17 is anyways breaking 😀) |
Should we default (I'm not completely happy by |
Done in the #17 PR. We use |
More suggestions: E.g.
|
I don't think we should. First of all, chunking and multithreading are different things. Second of all, it might be strange to call |
BTW, similar to |
I'm fine with the keyword only interface. I actually like it better. I went for |
I always felt that
type
should be a keyword argument, mostly because I generally prefer keyword arguments over optional positional arguments. And in light of #18 it might make sense to even makenchunks
a keyword argument, such that one can write:Note that this would be similar to
range
where one can specify eitherlength
and/orstep
and/orstart
and/orstop
.Only downside is that
chunks(array; n=8)
is more verbose thanchunks(array, 8)
but only slightly and also more explicit.The text was updated successfully, but these errors were encountered: