You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We dismiss complex numbers with a real part, presumably because of the +, so it would make sense to return FALSE for negative integer, double, and imaginary numbers.
In constructive I have already is_expression2() and is_syntactic_litteral2(), both unexported, which are mostly similar, though I don't think I based the former on yours directly. I need those so i can generate the code to construct language objects faithfully. I can remove the "2", make sure they pass rlang's own tests and export them there, but don't you need those in rlang for expr_deparse() and friends ?
Uh oh!
There was an error while loading. Please reload this page.
Since they use
-
.We dismiss complex numbers with a real part, presumably because of the
+
, so it would make sense to return FALSE for negative integer, double, and imaginary numbers.Related:
rlang::is_syntactic_literal(NA + 1i)
is currentlyTRUE
, to be a syntactic literal a complex number must have a real part of0
.The text was updated successfully, but these errors were encountered: