-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add a isiterable trait #23
Comments
I'm not sure how the word-age stuff could help here, but I know next to nothing about it. The new type-system might. You could try to use |
See #25. Next step for me is to understand inheritance of traits, so that I can define a trait Thanks for the pointer to |
Cool :-) There is no inheritance built into SimpleTraits but you can do it by hand, again using generated functions. See the Although the |
Fixed by #25. |
I'm not sure this can be done, but I have a vague idea that with all the new work about world counters etc. it might be feasible to add a trait that checks whether all the functions required for iteration are implemented for a type? I remember we discussed this somewhere before, and back then this didn't work because of the infamous problem in julia that I think is now solved with the world counting stuff.
Having an iterable trait would allow me to go to a much more elegant design in Query.jl.
The text was updated successfully, but these errors were encountered: