Hi!
Could PHP as a language be kept "pure" by first implementing python decorators*, then implement annotations using a purpose-built decorator?
No, we can't have python decorators because unlike Python PHP functions and classes aren't first-class objects. In Python, this:
@dec2 @dec1 def func(arg1, arg2, ...): pass means this: def func(arg1, arg2, ...): pass func = dec2(dec1(func)) However, you can't write equivalent code in PHP. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php