-
Notifications
You must be signed in to change notification settings - Fork 4
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
Yield a custom struct from OuterJoinIterator
#5
Comments
I think this makes sense. It fits in well with the relational |
This was discussed offline. I pointed out that it may be more ergonomic to use Options just because Options are Options. Also it makes handing "had left" uniform whereas this design makes "had left" a two-case situation (either Left or Both). Without usecases it's not clear that either design is better or worse. |
How about adding a fn to_options(self) -> (Option<T>, Option<T>); |
@csherratt My only concern is overhead, but I suppose iterators are supposed to be inlined to annihilation, so that seems like a decent compromise. |
(A::Key, (Option<A::Val>, Option<A::Val>))
is misleading because theOption
s cannot both beNone
. This could bewith the
Item
being(A::Key, OuterJoin<A::Val>)
, but the spatial metaphor is possibly confusing, andOption
is more ergonomic.The text was updated successfully, but these errors were encountered: