Closed oliyh closed 5 years ago
@w01fe this seems fine to me, do you have any objections?
Yeah, seems fine if a bit unfortunate.
I don't know enough about advanced compilation, is this going to be a problem in other places? Maybe pred
if passed a symbol should automatically capture the name or something?
I think it would be a problem in user code as well.
Automatically capturing the symbol would require converting pred
into a macro, which would be a technically-breaking change, in that any weirdo doing higher-order stuff with it would have to refactor.
We could add a (defmacro pred* [p]
(pred ~p '~p))`, and then people would have the option of using that. But that's complicated, requires explaining about why it's even necessary, etc..
Yeah I agree the ship has sailed unfortunately. Thanks again!
Sent with GitHawk
Also the macro approach would have edge cases like (let [unhelpful-name integer?] (s/pred unhelpful-name))
.
Released as 1.1.12
.
Hi,
This fix worked for me in relation to #417
Thanks, Oliy