Skip to content

Tuple.x puzzler #131

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

Closed
wants to merge 2 commits into from
Closed

Tuple.x puzzler #131

wants to merge 2 commits into from

Conversation

demobox
Copy link
Collaborator

@demobox demobox commented Jul 26, 2015

Updated version of Tim van Heugten's puzzler #127.

@nermin @tbvh: What do you think? Constructing the puzzler so that myTuple.x looks logical is a bit contrived, but I think there is a little to learn here:

  1. using Java-style method invocation vs. infix notation can inadvertently affect the order of operations in an expressions
  2. Tuple2 has a "weird" value x

The second item is mainly "library trivia" and the former is quite unlikely in practice, so I'm a bit on the fence about this one. Would be interested to hear what you think.

@tbvh
Copy link

tbvh commented Jul 30, 2015

@demobox, I'm impressed!
After I submitted my puzzle, I thought I figured these ->s out, but you use them to puzzle me again.

It took me a while to understand what it is that puzzles me the most. I think it is the evaluation order of the infix notation. Somehow I'm expecting the Point -> to take precendence over the implicit -> (1), reading from left to right.

To me, that is the puzzle, and the .x is only there to make a point ;).

  1. I'm in doubt whether this complies to the unofficial rule of puzzlers.

@demobox
Copy link
Collaborator Author

demobox commented Jul 30, 2015

I'm in doubt whether this complies to the unofficial rule of puzzlers

It's a bit borderline, indeed - but let's see what @nermin says ;-)

@demobox
Copy link
Collaborator Author

demobox commented Aug 7, 2015

It's a bit borderline, indeed - but let's see what @nermin says ;-)

Discussed this today with Nermin; consensus is that it's a little too contrived, indeed, so closing for now.

Thanks for submitting, Tim!

@demobox demobox closed this Aug 7, 2015
@demobox demobox deleted the tuple-x-puzzler branch August 7, 2015 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants