-
Notifications
You must be signed in to change notification settings - Fork 361
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
handle WdlPair - to fix #1703 #1704
Conversation
This was to fix #1703 |
Sorry that I missed this over the Thanksgiving break. This is awesome. Personally I would favour a But I'm not the only one with an opinion, I'm sure! @kcibul, @geoffjentry? |
Two other comments
|
@cjllanwarne @delocalizer I don't have a strong opinion either way although I think left/right looks nicer. I'm not concerned about expandability into tuples. Chris what you said is pretty much exactly what we laid out in the "but what if we want tuples?" discussion when talking about Pairs. My take on that is if that happens then the pair simply becomes semantic sugar over a tuple2 at which point we can map left/right to whatever representation a tuple2 uses. |
@cjllanwarne I added a test - is that the kind of thing you were after? |
FWIW I like the |
Reminder, while some of the tests should work, the entire current Travis test suite will never pass due to #1717. |
Thanks @delocalizer ! |
JsArray is the simplest... but do you think JsObject with keys "left" and "right", or "0" and "1" would be better?
"left" and "right" would be consistent with the wdl4s code, but not extend very well to larger tuple types if you ever decide to go there.