-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Unary minus operation with variables #3405
Comments
Also |
Thanks for reporting this. I revisited the way we do it in #3399 and it's not satisfactory. The problem we have is that there is ambiguity in the language. We accept implicit term separation, so for instance you can write:
Without a (It is worth noting that we also support:
but, I guess, nobody every uses that..) Morally, what we really should mean is that the line return is the term separator. However, for technical reasons, this is not how it's implemented: our current parser does not see line returns at all. This creates ambiguity, for instance:
is seen the same way as:
The current work around is to distinguish between:
The meaning for each is then:
Examples:
This is clearly a hack and we need to do better. We could keep adjusting the workaround but, the best is to add support for line return as term separator, which I will have a look at soon I hope. |
Describe the bug
Liquidsoap doesn't support unary minus with variables.
To Reproduce
Expected behavior
Unary minus supported.
Version details
Install method
savonet/liquidsoap:rolling-release-v2.2.x
Common issues
N/A
The text was updated successfully, but these errors were encountered: