Skip to content
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

Expressions containing mathematical prefixes are treated as numbers #28

Open
apophizzz opened this issue May 6, 2017 · 0 comments
Open
Assignees
Labels

Comments

@apophizzz
Copy link
Owner

When an expression including '+' or '-' is given, JScheme is expected to treat it as an undefined variable (assumed that is has not been defined before). This behavior conforms to the Racket specification. So what we would expect JScheme to do is something like this:

>> 1-2
### ERROR: undefined variable 1-2
>> 1+2
### ERROR: undefined variable 1+2

However, what JScheme currently does is interpreting expressions containing mathematical prefixes as numbers, thus returning unexpected results like this:

>> 1-2
=> 92
>> 1+2
=> 92
@apophizzz apophizzz added the bug label May 6, 2017
@apophizzz apophizzz self-assigned this May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant