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

Number * Array Gives Error #103

Open
kckennylau opened this issue Jun 19, 2017 · 2 comments
Open

Number * Array Gives Error #103

kckennylau opened this issue Jun 19, 2017 · 2 comments

Comments

@kckennylau
Copy link
Contributor

print [4]*5 produces [4, 4, 4, 4, 4] as expected, but print 5*[4] is an error.

@schas002
Copy link

schas002 commented Jun 20, 2017

Source diving shows that Number has undefined behaviour for a * b where b is neither a Number nor String. Source.

Y no define behavior? 😭

@vihanb
Copy link
Member

vihanb commented Jun 20, 2017

@schas002 NO_OP_BEHAVIOR does not mean undefined behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants