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
I believe the reason might be that expr[[2]] is a pairlist, not a symbol or call, since the doc also says :
is_expression() returns TRUE if the input is either a symbolic object or a syntactic literal. If a call, the elements of the call must all be expressions as well. Unparsable calls are not considered expressions in this narrow definition.
There might be a contradiction between these 2 quoted extracts.
I understand the appeal of the consistency of the 2nd definition (the one that is actually applied), but the 1st definition is more intuitive, maybe a pairlist_as_language arg and/or a note in the doc would help ?
The text was updated successfully, but these errors were encountered:
From
?is_expression
:I believe the reason might be that
expr[[2]]
is a pairlist, not a symbol or call, since the doc also says :There might be a contradiction between these 2 quoted extracts.
I understand the appeal of the consistency of the 2nd definition (the one that is actually applied), but the 1st definition is more intuitive, maybe a
pairlist_as_language
arg and/or a note in the doc would help ?The text was updated successfully, but these errors were encountered: