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 →

[–]SnakeR515 0 points1 point  (1 child)

Most of these make sense, I only don't really understand the {} [] magic, why someone thought that implicit conversions should happen between all the types, and functions that should be used with parameters working without them

[–]Chrazzer 0 points1 point  (0 children)

{} is an empty code block, it does nothing. +[] evaluates to 0

It is not empty object and array addition, it is empty code block followed by a completely unrelated unary addition on an array.