Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34020 invoked by uid 1010); 31 Jul 2004 12:38:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33976 invoked from network); 31 Jul 2004 12:38:59 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 31 Jul 2004 12:38:59 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i6VCcwPT018432 for ; Sat, 31 Jul 2004 14:38:58 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i6VCcvlV018421; Sat, 31 Jul 2004 14:38:57 +0200 Date: Sat, 31 Jul 2004 14:38:57 +0200 (CEST) X-X-Sender: derick@localhost To: Aidan Lister cc: internals@lists.php.net In-Reply-To: <20040730133809.46346.qmail@pb1.pair.com> Message-ID: References: <10911429306360000@9866357972520000.9866341568840000> <00b101c47623$78bcd270$0a00a8c0@home.jevon.org> <20040730133809.46346.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] GOTO operator From: derick@php.net (Derick Rethans) On Fri, 30 Jul 2004, Aidan Lister wrote: > > Develop some wacky construct that you have to use instead... that way, it > > will scare off novice users, and expert programmers will HAVE to know what > > they're doing and know that they really need it before they have to > > implement it. It's along the lines of "make the most dangerous stuff the > > hardest to do". > > I think this is probably one of the best ideas... > > > I'm not sure how, though... a huge language construct > > (goto_this_line_please)? Use numbers instead of labels? Relative jumping? > > Require extra messages? A weird symbolic construct? *shrug* > > I'd just disable it by default, force them to compile --with-goto > > That definitely stops the novices, and allows experts to use it if they > reallllly need it. > > Of course then portability then becomes a problem... So this is yet-another-bogus-idea ;-) Derick