-
Notifications
You must be signed in to change notification settings - Fork 570
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
Tuple optional #1540
Tuple optional #1540
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tuple lens looks good! For Optional
, I recommend moving Runebender's Maybe
to druid
I have similar doubts about the correctness of my |
@cmyr could you comment on the difference between this EDIT wrote before I saw @cmyr 's comment 😛. I'd still be interested in your opinions on the questions. |
And another question, if we have a widget for the |
in no order:
|
About the |
I'm open to suggestions! |
@cmyr I've swapped out the |
Ready for review :) |
Do we need both |
Oh I thought I had removed |
- A `Lens` that combines 2 lenses into a tuple - A widget that displays an `Option`, showing nothing if there isn't anything to show.
7dba470
to
102e975
Compare
- Change `Tuple` to `Tuple2`. - Put a doc alias of "null" on `SizedBox::empty`. - Remove `Optional` which had already been removed from widget `mod`.
Ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't make strong guarantees about covering all the corner cases in Maybe
, but I haven't seen a crash in runebender in a while? 😬
This patch adds 2 features. Special care is needed with the
Optional
widget. While I'm sure it is very useful, I'm not sure I've implemented it correctly.