| Andi Gutmans 2005-11-18, 6:56 pm |
| I wasn't thinking about it from a purist language design point of
view. It just seemed to me to be mixing apples and oranges. If
someone indeed wants to use default params with array typehints, then
at least we should make sure he has a true array so that he can use
it without warnings in any array/foreach whatever function.
is_array() should be true. I just think this isn't consistent.
At 02:40 PM 11/18/2005, Marcus Boerger wrote:
>Hello Andi,
>
>Friday, November 18, 2005, 8:30:09 PM, you wrote:
>
>
>
>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.
>
>
>
>Oh you refer to stipped down languages like Java?
>
>regards
>marcus
|