-
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
Add :fn/index
as alias for :index
in map syntax
#603
Comments
So nice to see you active and interested in Etaoin @dgr! I had to refresh my brain on how this all works (@borkdude and I are not the original authors of Etaoin but volunteered to maintain the project under clj-commons). So the I'm not sure why So, my question to you is, why do you want this change? Do you feel strongly about it? |
I think it's just about consistency. It seems like the If you look at the xpath, it's clear that
|
Thanks @dgr, adding a synonym sounds fine to me. Probably no need to deprecate |
That sounds fine to me. Do we need any more opinions before I create a PR, or should I just for it? |
Seems like a solid plan to me! Feel free to proceed with a PR! |
The map syntax supports an
:index
key that operates similarly to the various:fn/*
keywords.Indeed, in
impl/xpath.clj
theclause
multimethod has all the:fn/*
keywords as method selectors as well as:index
. This suggests that perhaps:fn/index
should be added as an alias for:index
and:index
be deprecated.If folks agree that this is the way to go, I can submit a PR.
The text was updated successfully, but these errors were encountered: