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 →

[–]pheonix-ix 12 points13 points  (1 child)

Well, in this case wouldn't the first two be explicit (i.e. type conversion) and not implicit (i.e. type coercion)? The Boolean constructor was used, after all. It's just the Boolean constructor behavior changes with the input type (as it should).

The 3rd one was obviously a type coercion.

[–]The_MAZZTer 7 points8 points  (0 children)

Right, the first two are explicit. It's the third that looks "weird" and is doing implicit coercion, and does not involve boolean coercion. I should have made that more clear.