Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31661 invoked from network); 21 Dec 2012 10:14:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2012 10:14:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:50280] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/F6-20281-C9634D05 for ; Fri, 21 Dec 2012 05:14:53 -0500 Received: by mail-la0-f50.google.com with SMTP id c1so4748305lah.37 for ; Fri, 21 Dec 2012 02:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=EMWJ6S9m5c8sIw9eYmbUATp6O3VZfBpMCMeMcw4AHpY=; b=evNeOyyCJ9qJP9FExmI8ZjoGE9CIkbA8m1d9tAOVkq2/O5x5yq5w7egMo92cCBdzEM EGH7yNNUQrKw+TxF5YWppnz534lSYTQgZsgdiym6Jb2SN8pIE1RjzktWjuBii9yze/WA mx4f/GsQX5CXBO4fNU2Anzy4QfbmMNR8FOeRbgJjy5Q0x8upmpO1lsu/adElHpRxP9Vo ukCHn9QvzhVyeFinRWWI36gcWxGZ7wzFs23l7kCmBh8I7ybGZesXkOcnNJ94ptqtRKIi 8IhhVFHg/BPQERZ0/PNcFiIGZZHv9a5qvnn5hpLFTRCqWqRhGZT/miaNGtRR3CLvKIQq Nwdw== X-Received: by 10.152.111.68 with SMTP id ig4mr11884002lab.50.1356084889437; Fri, 21 Dec 2012 02:14:49 -0800 (PST) Received: from debian-nnefedov.local ([46.38.35.218]) by mx.google.com with ESMTPS id tq10sm3813264lab.8.2012.12.21.02.14.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Dec 2012 02:14:48 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Peter Cowburn" , "Lazare Inepologlou" , "Christian Stoller" Cc: "Larry Garfield" , "internals@lists.php.net" References: <50C63A7C.8090705@gmail.com> <4ED7146272E04A47B986ED49E771E347BB3D6ABA6C@Ikarus.ameusgmbh.intern> Date: Fri, 21 Dec 2012 14:17:08 +0400 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <4ED7146272E04A47B986ED49E771E347BB3D6ABA6C@Ikarus.ameusgmbh.intern> User-Agent: Opera Mail/12.12 (Linux) Subject: Re: [PHP-DEV] DateTime improvement From: inefedor@gmail.com ("Nikita Nefedov") I don't think it would be ok to move just DateTimeImmutable to the = namespace. There were proposal to move all the php functions and classes in = namespaces, so that for example str_replace() could be \Str\replace() an= d = array_map() could be \Array\map() and so on. On Fri, 21 Dec 2012 12:33:04 +0400, Christian Stoller = wrote: > What about putting the new DateTimeImmutable (or whatever it will be = > called) into a PHP namespace? > Something like \PHP\Foobar\DateTimeImmutable > > Is it generally planned to use namespaces for PHP classes? In my opini= on = > it would be nice if the SPL and other classes would be put into such a= = > namespace, too. Are there any plans to do that? > > > Christian Stoller > > > -----Original Message----- > From: Peter Cowburn [mailto:petercowburn@gmail.com] > Sent: Friday, December 21, 2012 1:14 AM > To: Lazare Inepologlou > Cc: Larry Garfield; internals@lists.php.net > Subject: Re: [PHP-DEV] DateTime improvement > > On 20 December 2012 20:06, Lazare Inepologlou wro= te: >>> Of course, I have no idea if anyone in userspace is using >> DateTimeImmutable... >> >> Well, it seems unlikely, unless he is Yoda or French. >> >> I mean, in English, it is common to put the adjective in front of the= = >> noun, >> isn't it? > > Class names aren't particularly subject, too strictly, to English > grammar rules. Besides, the coding standards [1] dictate the class > name should be prefixed with the 'parent set' (e.g. extension name), > which in this case is not "Immutable". > > [1] https://github.com/php/php-src/blob/master/CODING_STANDARDS#L152 > >> >> Lazare INEPOLOGLOU >> Ing=C3=A9nieur Logiciel >> >>