Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11657 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18866 invoked by uid 1010); 30 Jul 2004 08:12:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18811 invoked from network); 30 Jul 2004 08:12:38 -0000 Received: from unknown (HELO mail.solarix.it) (217.70.144.114) by pb1.pair.com with SMTP; 30 Jul 2004 08:12:38 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.solarix.it (Postfix) with ESMTP id E164D17F64 for ; Fri, 30 Jul 2004 10:12:37 +0200 (CEST) Received: from mail.solarix.it ([127.0.0.1]) by localhost (skorpio [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07312-02 for ; Fri, 30 Jul 2004 10:12:36 +0200 (CEST) Received: from deathwish (194-185-53-167.f5.ngi.it [194.185.53.167]) by mail.solarix.it (Postfix) with ESMTP id 2DA0917F61 for ; Fri, 30 Jul 2004 10:12:36 +0200 (CEST) Organization: Solarix Srl To: internals@lists.php.net Date: Fri, 30 Jul 2004 10:12:10 +0200 User-Agent: KMail/1.6.1 References: <20040729021337.73894.qmail@pb1.pair.com> <200407291531.32614.alex.pagnoni@solarix.it> <4109ACC6.4040100@leetspeak.org> In-Reply-To: <4109ACC6.4040100@leetspeak.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <200407301012.11170.alex.pagnoni@solarix.it> X-Virus-Scanned: by amavisd-new at solarix.it Subject: Re: [PHP-DEV] GOTO operator From: alex.pagnoni@solarix.it (Alex Pagnoni) Alle 04:04, venerd=EC 30 luglio 2004, hai scritto: > Where do you see the correlation between OOP and the presence/absence of > "goto"? It is not for the OOP model by itself, but for a general code maintenabilit= y=20 issue that OOP languages tend to address, while a too powerful goto operato= r=20 may cause certain abuses from not well experienced programmers. Being involved in the open source world, I frequently have to deal with=20 other's code. I hope not to find a day a project that I have to internally= =20 deal with, containing a jungle of gotos. It is a sort of strategical decision - while it seems to me that with the n= ew=20 ZE the PHP language is suggesting the path for a more and more (hopefully)= =20 maintenable code, it seems also that with a goto operator we also allow to= =20 produce less even maintenable code. But reading the various posts here, I changed a little my opinion. I'm in=20 favor of a goto operator if the "scope" of its labels is limited to, say, a= =20 function/method only. My experience with basic is dated at about twenty yea= rs=20 ago so in my mind there are ugly examples like 10 print / 20 goto 10 :-) So now I can give, as others said, my +0.00000001. Alex