Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
From: Marcus Boerger Date: Fri, 18 Nov 2005 22:40:42 +0000 Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c References: 1 2 3 Groups: php.zend-engine.cvs Request: Send a blank email to [email protected] to get a copy of this message
Hello Andi, Friday, November 18, 2005, 8:30:09 PM, you wrote: > At 11:51 PM 11/17/2005, Dmitry Stogov wrote: >>I don't see any reason not allow null as default value for arguments with >>array type hint. > It's not a valid array value. That's a very purist oppinion and somehow contradicts php's kiss approach. In th ebeginning i was against this too. Just because language design theory would forbit this (unless we have a syntax to explicitly allow null too). However a lot of users want this and even though those designs are probably considered very bad from any university it seems to help them. >>In real OOP languages "array" just a special class. Oh you refer to stipped down languages like Java? regards marcus
Thread (19 messages)
- Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) / zend_compile.c
- Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
- RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
- RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1)/zend_compile.c
- Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
- RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
« previous | php.zend-engine.cvs (#4366) | next » |
---|