Re: feature request
| From: | Zeev Suraski | Date: | Mon, 19 Mar 2001 21:27:09 +0000 |
| Subject: | Re: feature request | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-49404@lists.php.net to get a copy of this message | ||
What is iseverythingelse()? I don't think we have any other iseverythingelse() function.
The fact isset() is a language construct does make a serious difference. It already is very different from functions, and not in its underlying implementation but its semantics.
Zeev
At 23:21 19/3/2001, Lars Torben Wilson wrote:
Jason Greene writes:-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/Generally using functions for two different purposes is a bad idea, but enhancing functions with additional arguments that extend itsfunctionalityis not too bad. In this case, adding n arguments is perhaps theextensionthat makes the most sense for isset(), so we should go withit. Keeping itwith one argument 'for future use' doesn't make much sense in my opinion. Not any more sense than saying the same thing about some new argument someone might want to add to it in the future - why not keep it clean and wait for a 'better' use? ZeevI agree, this is something thats had more thought put into it than it really needed. This functionality very much fits issets nature - something goes in and 0/1 comes out. There really is no reason to not implement the request. -Jason Well, Phil is right in that if isset() is changed then iseverythingelse() also needs to be examined and if necessary and possible changed to suit. Otherwise we'll be fielding questions about 'well it works this way for *this* function, why not this one?' for years. The same question. Over and over and over. Because if the language itself isn't consistent then no number of FAQs and manual notes will prevent people from stubbing their toes. I think that too much thought has most definitely *not* been put into this issue--the effect on the whole language needs to be considered, not just isset(). Just IMHO, of course. -- +----------------------------------------------------------------+|Torben Wilson <torben@php.net> Adcore Finland| |http://www.coastnet.com/~torben http://www.adcore.com| |Ph: 1.604.709.0506 torben@adcore.com|+----------------------------------------------------------------+