Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28727 invoked by uid 1010); 9 Oct 2007 02:32:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28712 invoked from network); 9 Oct 2007 02:32:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2007 02:32:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:37387] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/DE-22438-F48EA074 for ; Mon, 08 Oct 2007 22:32:47 -0400 Received: from [192.168.11.21] (c-71-202-45-81.hsd1.ca.comcast.net [71.202.45.81]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-10) with ESMTP id l992WeIv019637; Mon, 8 Oct 2007 19:32:40 -0700 In-Reply-To: <4707D8AA.9060905@daylessday.org> References: <200710042005.30734.larry@garfieldtech.com> <285930281.20071006200938@marcus-boerger.de> <200710061338.47307.larry@garfieldtech.com> <4707D8AA.9060905@daylessday.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <00D6A914-81DE-406C-8DD0-9577A60DB496@gravitonic.com> Cc: Larry Garfield , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Mon, 8 Oct 2007 19:32:42 -0700 To: Antony Dovgal X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: ClamAV 0.91.2/4510/Mon Oct 8 18:08:43 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] substr/array_slice in [] From: andrei@gravitonic.com (Andrei Zmievski) I will use an example: $foo = substr($bar, 0, 5) . "-" . substr($bar, 5); or $foo = $bar[:5] . "-" . $bar[5:]; I would argue that the second line is hardly more cryptic than the first one. And if we were concerned that concerned about duplicate functionality, we probably wouldn't have SimpleXML and similar things. -Andrei http://10fathoms.org/vu - daily photoblog On Oct 6, 2007, at 11:49 AM, Antony Dovgal wrote: > I believe it should be pretty clear that "too perlish" means "too > cryptic > and makes no sense because it duplicates already implemented > functionality > (more than one way to do it, yeah)". > > But "too perlish" is much shorter. > > -- > Wbr, > Antony Dovgal