-
Notifications
You must be signed in to change notification settings - Fork 4
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 a substitute argument to push() #63
Comments
With this change: shikokuchuo/mirai#49 (comment) Your substitute argument becomes redundant and can be reverted. |
I updated |
I would have agreed with you completely last week, but while I was fixing a subtle bug at the C level, I got more hands on experience of As a result, I no longer think the previous behaviour is in any way more correct - the reason being the The current behaviour of I am also quite confident of the implementation as it is so simple, and you are more than welcome to use it for expr <- substitute(.expr)
.expr <- if (is.symbol(expr) && is.language(get0(expr))) .expr else expr The key to the simplicity is that the R function From the above, the only time If the user explicitly passes something like Just sharing my thoughts - I recognise that both approaches are valid - indeed that's part of the beauty of the R language! But I think that having a |
Thanks for explaining your thinking. I do not share the same opinion about how to treat symbol arguments (I think users may want to test |
You make a good point - it is possible that someone wants to test mirai with something like But now we are talking about probabilities - the joint probability that (i) there exists a language object (not any other type of object) on the search path with the exact same name as the arbitrary symbol specified, and that (ii) the real intention of the mirai is to just evaluate the symbol (which is kind of pointless for a mirai). So that's why I am willing to make this assumption. As it must be a much rarer occurrence than those who will try and pass in a language object without knowing to set Sorry for being so long-winded - I just want to make sure my logic is correct, as this discovery was fairly recent. |
Analogous to
future::future()
. Default should probably beTRUE
.The text was updated successfully, but these errors were encountered: