On Tue, 2012-07-24 at 10:37 -0400, Anthony Ferrara wrote:
> 
> If you went by "possible", half the proposals for the language
> wouldn't be accepted (password hashing, generators, goto, Class name
> to scalar resolution, T_AS for closures, type hints, call-time
> dereferencing, traits, classes, etc). All of that behavior is possible
> without the language sugar that they bring. The main drive for adding
> them is that it makes a developers life a lot easier. Rather than
> dealing with yet another level of abstraction to add an object, adding
> a simple finally clause would make implementing that sort of cleanup
> FAR easier. 

That's why I asked for cases where this language construct is needed. I,
from my personal, limited, experience don't have that many needs for
this feature.

I however see that it makes try/catch blocks and stack frames more
expensive (both in CPU time and memory) and the language more complex.

Te best argument I saw in this discussion for adding it was "it's
possible and I want it". This I don't see as enough reason.

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to