For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > November 2005 > Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com