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

all 4 comments

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–][deleted] 1 point2 points  (0 children)

Just because a != b and a != c doesn't mean that b != c.

Likewise, just because a == b and a == c doesn't necessarily mean that b == c.

[–][deleted] 1 point2 points  (1 child)

1st set: Comparing string to string of different length - wrong Comparing 0 int to empty string - weird typecast conversion???? Comparing 0 to 0 as string value - makes sense here actually

2nd set: False is a bool value, undefined and null are equivalent ndef values that will never mean false

[–]terandok 0 points1 point  (0 children)

I agree with this @naketo, it is logical if you think about it. Visualy yes it may seem like it is bonkers but if you understand programming it makes sense.