-
Notifications
You must be signed in to change notification settings - Fork 96
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
Issues 671 and 672 #673
Issues 671 and 672 #673
Conversation
Automatically flatten nested sequentials (vectors, lists, seqs, etc) and return better error messages for empty sequential queries.
So Dave, we agreed we weren't solving any known pain points for Etaoin users with #671, but you went ahead and implemented anyway? |
Yea, I implemented it anyway. If you want to reject the PR, that's your call. But I think this is the right thing to do. I know that you see it as adding functionality. I see it as solving a bunch of cases that were handled poorly in a way that's elegant and enhances usability. But you're the maintainer, so it's your call. |
Hi Dave, First, thanks for your continued interest and contributions to Etaoin. Moving forward, though, it is important that we have clear agreement before submitting a PR. Submitting a PR without agreement creates unexpected work for me and puts me in a tough position - either having to disappoint the submitter by rejecting their PR or spending time re-reviewing their proposal and now also their code. While all PRs are certainly well-intentioned, remember that as the maintainer, I need to understand and maintain all changes long after contributors have moved on to other things. |
Yep, I get it. Do what you think is right. I won't be offended either way. |
Since #671 isn't solving any known problems for Eatoin users, I'm going to go ahead and close this one. |
Closes #671
Closes #672
Please complete and include the following checklist:
I have read CONTRIBUTING and the Etaoin Developer Guide.
This PR corresponds to an issue that the Etaoin maintainers have agreed to address. Not yet. I waited for a couple of days after discussing both Support sequentials in addition to vectors for
query
#671 andquery
doesn't correctly handle vectors inside of vectors #672 last week. I started to code up what I agreed to (throw better errors), but because of the way thatquery
is coded, it rapidly became a bit of a mess. I stepped back and asked myself, "Is this the Right Answer?" I didn't feel like it. So, I left that alone and coded up what I had proposed. The code fell into place very naturally and so I kept going, adding regression tests, updating the User Guide, and ultimately the CHANGELOG. So, here it is. In this PR,query
supports arbitrary sequentials, not just vectors. This means vectors, lists, seqs of all sorts, etc. Also, it supports an arbitrary hierarchy of sequentials which are thenflatten
-ed before the traversal starts. This allows for easy storage of partial paths (e.g., path prefixes) in variables which can simply be added to a sequential query as well as generation of parts of the path programmatically when the result of that generation is something like a lazy-seq (e.g., something returned by all the lazy collection routines).This PR contains test(s) to protect against future regressions
I have updated CHANGELOG.adoc with a description of the addressed issue.