Conversation:
Notices
-
@takeshitakenji "Jesus christ and I think PHP's typing was weak"
-
@takeshitakenji My biggest pet peeve with python is even explicit type definitions don't survive contact with the code in the slightest fashion. PHP at least has the sense to keep type if you explicitly define it.
-
@takeshitakenji Scala is just "I have no idea how anyone thought this was a good idea"
-
@takeshitakenji Being more explicit is always a good idea. The less you leave for another programmer to interpret (esp in a group project), the less change of someone fucking things up.
-
@takeshitakenji It also makes the code more efficient because the interpreter doesn't have to keep doing the lookups for the implicit reference.
-
@xj9 @takeshitakenji Pass any explicitly-cast variable to a function in php and it will raise a TYPEERROR if it's not the right type. Pass any explicitly-cast variable to a function in python and you'll just get the "correct" type out. In particular, it loves turning strings into tuples.
-
@xj9 @takeshitakenji Er, you need me to tell you how to pass variables to a function in either language?