closures in php

18 December 2006 // php. stuff.

Php is definitely not a suitable language for functional programming. Php functions live in a parallel reality - when your program starts, the construction of functions is complete, nothing can be changed anymore. However, Php is an open language (as it has eval ), so it should be possible to do some experiments.

more...

quasi blocchi in php

08 December 2006 // php. stuff.

Every programmer knows that iterators are generally better than loops. Although php has a variety of iterator functions, their use is seriously limited, because there is no way to pass user code to the iterator.

more...