Re: Introducing "Array Of" RFC
From: Crypto Compress Date: Wed, 15 Jan 2014 23:18:32 +0000 Subject: Re: Introducing "Array Of" RFC References: 1 2 3 4 5 6 7 8 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Hello, since there is an option for nullable type-hinted variables, it may be usefull to *explicitly* allow null values in a type-hinted array too. e.g.: function foo(Bar[null] = null) to consider: - null is not an object - null is not "nothing" - null is not "not defined" - null is not a/any type (even documentation states so) Java: only reference types are nullable c#: only if explicitly defined sql: only if explicitly defined cryptocompress
Thread (46 messages)
« previous | php.internals (#71161) | next » |
---|