Conversation
There was a problem hiding this comment.
I'm not against this change (and would be willing to change my comment to an approve), but I do find Any.any⇒satisfiable quite redundant. (I'm fine with the change wrt + and - superscripts, that is more coherent.)
I'm not sure of the balance between having names spelled out in full what the function does and using more contextual information (it's in the Any module!) wrt saying what the function does.
|
Thanks @JacquesCarette I'll update the PR in line with my new thinking as discussed on #2865 ... Aaargh! re-using a name, but only one introduced by #2862 so it's OK to:
Arguably the last two additions are... potentially confusing, but I think they are consistent with our style-guide policies. |
|
Are we (collectively) sure that this is not a I reread the discussion on #2865 (much of it my own ;-)), and looked reasonably carefully at the So, I'll revise the opening question and ask instead:
Advice welcome before we unwittingly merge this as-is with two approvals!? |
| satisfied : Any P xs → Satisfiable P | ||
| satisfied (here px) = _ , px | ||
| satisfied (there pxs) = satisfied pxs | ||
| satisfiable : Any P xs → Satisfiable P |
There was a problem hiding this comment.
This unfortunately introduces a clash with the old definition attached to this name, at L93-L94 below, so while consistent with the rest of the PR, introduces a breaking name change for List.
|
I think your path forward seems to be the one most consistent with our current policies. |
My addled brain wasn't able to work out which you think the "path forward" actually is:
|
|
non-breaking for now, wait for 3.0 for breaking. |
OK, I think that this is now ready, and correct according to such policy/rubric ;-) |
This is one approach to #2865 but having committed this, I see a couple of possible pain points:
CHANGELOGbe, given the somewhat underspecified entries from Add various relations over non-empty lists #2862 , and that this is strictly speaking 'just' a revision of an existing v2.4 set of changes?satisfiable, but I guess that might bebreaking... sigh))If nothing else, it serves to make concrete the discussion of the issue #2865 and any candidate solution. I've updated the issue with my latest thoughts on the matter, so maybe it's worth making this
DRAFTuntil that discussion shakes out?