-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
An array literal can be written with an arbitrary number of hash signs #17417
Comments
also ###ABC = #ABC the answer is true |
it ignores all the # but one. I do not like that, it accepts bad code and makes ##() un-availabe for experiments (or even usage for something) |
Indeed we should fix this because it can block us in the future. |
|
what a strange idea. |
I did #17431 |
Now I cannot debug the tests :( To me it looks like a strong limit of the test parameters.
|
Since ASTCodeSnippet badTokens size -> 52 So it feels like we should have a debug approach for the parametrized Text matrix. |
@steven when I load the PR and then I checkout a branch that would remove the PR this system freezes. |
I forgot to add it to the initial description: GemStone does not accept literals with multiple hashes. |
Bug description
An array literal is written like this:
#( 1 2 3)
But apparently Pharo allows an arbitrary number of hash signs:
All these literals evaluate to an array with integers 1, 2, and 3.
Is that expected/desired behaviour?
The text was updated successfully, but these errors were encountered: