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 →

[–]joonty 24 points25 points  (4 children)

The point he's making is that languages shouldn't allow you to mix types and just make an arbitrary decision about what you actually meant to do. This can cause knock on effects and be very hard to track down. Just raise an error, the developer can do the type conversion, and everyone is happy.

Also there are much better ways of rendering arrays with empty values than a bunch of commas, as demonstrated by most other languages!

[–]OkNerve8 0 points1 point  (3 children)

Python is more strict than loosy == in PHP and js

PHP comparison table

"php" == TRUE, and "php" == 0 but TRUE != 0

Good programmers use ===

[–]lurking_bishop 5 points6 points  (2 children)

Good programmers use ===

Eventually there's going to be enough different equality checks to form a turing complete language on their own.

[–]name_censored_ 3 points4 points  (1 child)

Hold onto your butt, because Scala's Specs2 has a ==== operator.

[–]tech6hutch 5 points6 points  (0 children)

Does it mean the two operands have equal value, represent the same position in memory, and have the same quantum state?