Cheddar
Cheddar copied to clipboard
Number * Array Gives Error
print [4]*5
produces [4, 4, 4, 4, 4]
as expected, but print 5*[4]
is an error.
Source diving shows that Number
has undefined behaviour for a * b
where b
is neither a Number
nor String
. Source.
Y no define behavior? :sob:
@schas002 NO_OP_BEHAVIOR
does not mean undefined behavior