-
Notifications
You must be signed in to change notification settings - Fork 55
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
Special case Not
, Between
, Regex
etc. before 1.0?
#283
Comments
This could open up the door to thinking about
which might be expected to work if |
I went though documentation on Some particular issues:
Finally I missed a very precise specification how expressions passed to macros are parsed. In particular:
Having said these two things I do not understand why things like:
do not work, but
works. E.g. I do not understand the rule for the following:
and it was not clear for me how DataFramesMeta.jl decided that it does not need to create an anonymous function. |
Okay, I will open up a PR to work on this. I do not know how to fix the With regards to DataFramesMeta.jl/src/parsing.jl Line 261 in 73bb4c4
This line says that if an argument is just
gets the same code path as
We don't require users to reference any columns at all, so arbitrary expressions are assumed to enter the anonymous function. Let's say we make non-keyword arguments default to column selectors. This works fine in But in |
have you tried |
Regarding the rules. What I think would be very good is if you written down all the rules in the documentation somewhere (something just like you have described above, but an exhaustive list). If I had such a list I could more easily check things. |
Okay writing this up, two notes so far
|
Added in #372 |
Should we allow for
before we go for 1.0?
currently you have to do
which is ugly.
I would guess we should special case
Not
,Between
,Regex
, andr"..."
. But not special case1, 2, 3...
because integers are more likely to conflict with normal code doing analysis.The thing to consider is whether or not the macros that accept arguments as-is (no
:y = f(:x)
requirement) like@orderby
,@subset
, and@with
will be affected by this. I don't anticipate any issues.This can be added post-1.0. But maybe we want to be very polished for that.
The text was updated successfully, but these errors were encountered: