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've decided to go with preferring the postfix version.
The equivalent problem with prefix operators still exists, but I had a look at how they're produced, and I think there are lots more potential ambiguities if I dig any deeper. At the moment, a prefix op token can only be produced following punctuation or a non-postfix op. Adding in implicit multiplication would lead to loads of ambiguities. For example, does a-b represent (a)-(b), or a * (-b)?
I keep writing
$n`? $v
, which currently gives a "missing operator" error. I should write$n`? * $v
.The expression
n!x
also has this problem.So, the parser should insert an implicit multiplication symbol following a suffix operator.
The text was updated successfully, but these errors were encountered: