On Fri, 4 Jul 2014, Levi Morrison wrote:
For completeness, it is available in Perl and I believe Perl had it first; not completely sure though.
Okay, I never used Perl.
I don't think changing isset would be beneficial, sadly. I wish it only checked that a variable exists and didn't do the not null check but it's used very, very widely.
As long as people don't have to use isset anymore to check for a not-null, perhaps over time this widespreadedness would become less.
As soon as you can use "unless (is_null())" to check whether a variable exists and is not null, the need for using isset for this should greatly diminish...
Just my perspective. I don't know what other people think, the boogieman of this list seems to not want to discuss anything related to this, so I don't know.
I mean for me it means having to rethink my thinking, i.e. to get used to this new statement. But it would probably become very natural?
I would imagine a lot of people becoming enthusiastic about an "unless" statement. It is also a sexy thing to introduce and it doesn't require any changes to existing code.
Again, just my perspective. Curious what other people really think at this point.
Regards, Bart -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php