News for hackers. Stuff that matters.
Re:PHP: A fractal of bad design by Gigablah on Tuesday April 10, 2012 @08:31PM (#3825272)
> Want to write an ORM that uses classes or objects as column declaration in PHP?

What prevents you from doing that in PHP?

Re:PHP: A fractal of bad design by ceol on Tuesday April 10, 2012 @08:50PM (#3825345)
PHP doesn't allow you to pass functions and classes as arguments.
Re:PHP: A fractal of bad design by Gigablah on Tuesday April 10, 2012 @10:45PM (#3825675)
You can. Here's my code as an example:

https://github.com/gigablah/fsphinxphp/blob/master/src/FSphi...

Note the $getter parameter.

Re:PHP: A fractal of bad design by cgdangelo on Tuesday April 10, 2012 @09:20PM (#3825441)
Unless I'm misunderstanding you, passing functions as arguments is definitely possible with anonymous functions/closures.