From f49fa20a48733674fd59a9660080f8d874203323 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Fri, 27 Mar 2009 09:24:35 -0500 Subject: [PATCH] remove FIXME on PHP, it has been double-checked [h/t JH] --- your-first-python-program.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/your-first-python-program.html b/your-first-python-program.html index 7a4f443..e3444d1 100644 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -82,7 +82,7 @@ if __name__ == "__main__":
A language in which types are always enforced. Java and Python are strongly typed. If you have an integer, you can't treat it like a string without explicitly converting it.
weakly typed language
-
A language in which types are “automagically” coerced to other types as needed; the opposite of strongly typed. PHP is weakly typed. In PHP, you can concatenate the string '12' and the integer 3 to get the string '123', then treat that as the integer 123, all without any explicit conversion. [FIXME double-check this] +
A language in which types are “automagically” coerced to other types as needed; the opposite of strongly typed. PHP is weakly typed. In PHP, you can concatenate the string '12' and the integer 3 to get the string '123', then treat that as the integer 123, all without any explicit conversion.

So Python is both dynamically typed (because it doesn't use explicit datatype declarations) and strongly typed (because once a variable has a datatype, it actually matters).