-
Notifications
You must be signed in to change notification settings - Fork 163
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
Implicit multiplication bug #92
Comments
Current version of source throw exception.
|
Thanks for the update @bvedrenne . It seems like that exception is only being thrown because the variable x has not been assigned any value. Your test could be rewritten as:
This would assign x the arbitrary value of 2. However, since implicit multiplication is off, an IllegalArgumentException is still thrown, but this time it says that there is an invalid number of arguments passed to the function, which is a more accurate description of the exception thrown. Correct me if I'm wrong, but it seems to me like that was the only issue with the code. Now, the correct exception is being thrown. |
Thanks for the update @bvedrenne and @shuvamc019 for your answer. The more accurate to me is to throw an |
If you have the following formula "3x+1" and you disable the implicitMultiplication, I'll have, not an exception, but an error telling you that you have too much operators !!
The text was updated successfully, but these errors were encountered: