Andrew Shearer wrote:
Meanwhile, array_get() provides the most-needed functionality while avoiding the issues that prevented ifsetor's acceptance.
Aside from lack of BC hacks what is the issue? I remember some fussing about the name, but I find this a joke of an argument. You cant get much clearer a name than ifsetor().
There's a backward compatibility problem with ifsetor: its special syntax means that there's no way to write a pure-PHP userland version of it. The effect is that there's no upgrade path for applications that have to straddle both old and new versions of PHP, and practical usefulness of ifsetor would be delayed for years after release.
I use ifsetor() type functionality on a daily basis. As such I would appreciate it if it would be an operator and would make its way not only into php 6, but also php 5.3.
Marcus's half solution is not a solution to what I need. Andrew's solution gets close enough to solve my real world needs. Now if I could just see the slightest bit if a real argument against ifsetor(), I might even vote for array_get() (not sure if I appreciate the name though).
regards, Lukas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php