Type Hinting in PHP 6
View Single Post
02-01-2010, 01:12 AM
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
I think a part of PHP's beauty is that it does not have strong typing, or a distinction between types of objects and primitives.
Doing Java development shows the contrast between the two ideologies. In one, you can document things easily and do many things quickly and dynamically. In the other, you have the assurance that what you specify is what is (usually).
Type Hinting is enough for most purposes, and simple naming convention with mixed type checking should be enough for primitives.
View Public Profile
Send a private message to ryanmr
Find More Posts by ryanmr