PHP in Action Rotating Header Image

Type hints are not hints

Graffiti: Hint
Image by Franco Folini via Flickr

As Kevlin Henney pointed out at the PHP UK Conference 2007, PHP type hints are not hints.
Rather, they are instructions to PHP to check the type. That may not be terribly important,
but it’s worth pointing out, since confusing terminology is less confusing if you understand how it’s confusing.

Anyway, I hereby apologize to the gods of programming for using the term and for the fact that I intend to keep on using it. ;)

Reblog this post [with Zemanta]

Share/Save/Bookmark

One Comment

  1. Lukas says:

    Amen, I would really prefer if they would infact really just be hints .. but alas ..

Leave a Reply