Zeev Suraski wrote:

At 22:26 30/07/2004, Edin Kadribasic wrote:

On Friday, Jul 30, 2004, at 21:16 Europe/Copenhagen, Zeev Suraski wrote:

My 2c - we shouldn't discuss the implementation in the same context as whether we should have it, because it moves the focus away from the source of the problem, which is not implementation. We're way beyond the times when we add something to PHP just because we can... I'm not saying we shouldn't discuss it, just not in the same thread.


I pretty much fail to see the reason to discuss this with you as you have more or less already vetoed it. No amount of arguments on how useful this tool is in certain situation is is going to convince you, isn't it? It is after all you who has such delicate sense of what are the needs of "the community".


I think it's a shame you resort to sarcasm instead of actually responding the points I (and others) are making. I went over the thread and most of what I could find was references to other places with examples that show why GOTO is so necessary, but couldn't actually find too many of these places.

Ok if you insist I'll copy and paste example where I said I missed goto very much in my several years of using PHP:


function pseudocode()
{
    $a=allocate_resource_z();
    $b=allocate_resource_y();

    $res=do_stuff();
    if(!$res)
        goto err_out;

    $c=allocate_resource_x();
    $res=do_more_stuff();
    if(!$res)
        goto err_out;

    $d=allocate_resource_foo();
    $res=do_even_more_stuff();
    if(!$res)
        goto err_out;

    return true;

err_out:
    free_resouce($a);
    free_resouce($b);
    if(isset($c)) free_resouce($c);
    if(isset($d)) free_resouce($c);

    return false;
}

[snip]

And please, stop the 'dictator!' accusations. If whatever came out of my mouth was immediately implemented in PHP, we'd have libxml2 bundled and SOAP support built-in (just two examples, there are plenty more, and that's just fine).

You wanted SOAP promoted from PECL to the main distro which has happened. Libxml2 is built-in on Windows along with the lastest PHP XML extensions. Including libxml2 source in the source distro presented some problems that required some effort to be solved. I don't remember you our anybody else willing to put some work into this.


Edin

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to