Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50369 invoked by uid 1010); 9 Oct 2007 10:27:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50354 invoked from network); 9 Oct 2007 10:27:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2007 10:27:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 72.36.186.210 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 72.36.186.210 midden.org.uk Received: from [72.36.186.210] ([72.36.186.210:60196] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/2C-04247-B975B074 for ; Tue, 09 Oct 2007 06:27:40 -0400 Received: from office.vbulletin.com ([217.155.246.60] helo=[10.0.0.116]) by lovelace.midden.org.uk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IfCJF-0007GI-PD; Tue, 09 Oct 2007 11:27:30 +0100 Message-ID: <470B5788.3090100@macvicar.net> Date: Tue, 09 Oct 2007 11:27:20 +0100 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Stefan Walk CC: Antony Dovgal , "Ford, Mike" , internals@lists.php.net References: <93ED589E60BA254F97435FE6C97F2C672DE125@leedsmet-exch1.leedsmet.ac.uk> <470B45E1.1030403@daylessday.org> <470B4E32.2020703@physik.tu-darmstadt.de> In-Reply-To: <470B4E32.2020703@physik.tu-darmstadt.de> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] substr/array_slice in [] From: scott@macvicar.net (Scott MacVicar) Sure it works fine when it's been in the language for several years and it's guaranteed to be available in the version provided by your hosting company. In reality this isn't the case with PHP so everyone will end up using the older method to support backwards compatibility or mixing it and causing confusion. Scott Stefan Walk wrote: > Antony Dovgal wrote: >> Right, so let's force other people to learn crappy unreadable syntax >> duplicating nice and clear function call > Oddly, this "crappy unreadable syntax" doesn't lead to any confusion or > complaints for newbies of languages like python or ruby, judging from > the IRC channels. And it's also odd that ruby users, where String#[] is > just an alias for String#slice, prefer this "crappy unreadable syntax" > over a "nice and clear" method call. One starts to wonder ... > > Regards, > Stefan >