Skip to content
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

Document setkey! in the README #117

Open
mzgubic opened this issue Jul 18, 2022 · 0 comments
Open

Document setkey! in the README #117

mzgubic opened this issue Jul 18, 2022 · 0 comments

Comments

@mzgubic
Copy link
Contributor

mzgubic commented Jul 18, 2022

I love being able to do this but always have to dig a bit to remember how it's called. Possibly on purpose, as it is not exported? Would it be helpful to have it in the docs with a warning?

Not sure what kind of black magic would be needed, but getting a custom error message when trying

julia> ka = AxisKeys.wrapdims(rand(3); obs=1:3);

julia> ka(obs=1) = 1.0
ERROR: cannot define function ka; it already has a value
Stacktrace:
 [1] top-level scope
   @ none:0
 [2] top-level scope
   @ REPL[89]:1

could be helpful for people starting out as well.

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

No branches or pull requests

1 participant