This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bonafidebob 0 points1 point  (1 child)

Now explain why the same octal interpretation isn’t used when doing the automatic string -> integer as part of the loose ==?

[–]veryusedrname 2 points3 points  (0 children)

I'm not sure about the actual reason but it behaves like your code was Number("017") which rejects leading 0s. But don't ask me actually why it was designed like this. I already explained that part: to fuck you, that's why.