News for hackers. Stuff that matters.
Re:New to PHP 5.4: Traits by oorza on Sunday November 21, 2010 @05:27AM (#1926831)
> classes are defined as final entities at compile time, then used at run time.

This isn't exactly true. PHP objects can have dynamically assigned members without having magic methods defined. e.g.

    $foo = new stdClass();
    $foo->bar = "baz";
    echo $foo->bar; //"baz"
And now, with "closures", those members can be methods.

There are no comments on this comment yet.