Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11032 invoked from network); 6 Aug 2008 22:55:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2008 22:55:31 -0000 Authentication-Results: pb1.pair.com header.from=moriyoshi@at.wakwak.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=moriyoshi@at.wakwak.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain at.wakwak.com designates 219.103.130.24 as permitted sender) X-PHP-List-Original-Sender: moriyoshi@at.wakwak.com X-Host-Fingerprint: 219.103.130.24 mgdnp1.nw.wakwak.com Received: from [219.103.130.24] ([219.103.130.24:56011] helo=mgdnp1.nw.wakwak.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/7F-29324-0EB2A984 for ; Wed, 06 Aug 2008 18:55:30 -0400 Received: from vckyb1.nw.wakwak.com (postfix@vckyb1.nw.wakwak.com [211.9.230.144]) by mgdnp1.nw.wakwak.com (8.14.3/8.14.3/2008-07-17) with SMTP id m76MtLsj030499; Thu, 7 Aug 2008 07:55:21 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 7831630052; Thu, 7 Aug 2008 07:55:21 +0900 (JST) Received: from [192.168.10.22] (i118-20-156-43.s05.a006.ap.plala.or.jp [118.20.156.43]) (user=moriyoshi mech=CRAM-MD5) by at.wakwak.com (8.14.3/8.14.3/2008-07-15) with ESMTP/inet id m76MtKaq050226; Thu, 7 Aug 2008 07:55:20 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Message-ID: <489A2BC6.3070308@at.wakwak.com> Date: Thu, 07 Aug 2008 07:55:02 +0900 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stanislav Malyshev Cc: Larry Garfield , internals@lists.php.net References: <909776579.20080803142659@marcus-boerger.de> <4896EA3C.6010203@zend.com> <4897E9B5.9020006@at.wakwak.com> <200808052035.12199.larry@garfieldtech.com> <489908C2.9040200@at.wakwak.com> <489939C5.2090007@zend.com> <4899B449.4010800@at.wakwak.com> <4899D488.2010803@zend.com> In-Reply-To: <4899D488.2010803@zend.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Stanislav Malyshev wrote: > Hi! > >> What a nitpicking :) So would I say that the global statement is >> inconsistent with static because it doesn't allow assignments within >> the statement :p > > Sure it is. That's just another thing to show all this "consistency" > talk is blown way out of proportion long ago. Now let's make global > accept assignments and ignore them for "consistency", should we? I'd prefer the opposite way in which no initializers are allowed for static. null type was introduced to mark uninitialized variables in the first place, so if we have strictly kept the original intention, there should be no problem with this idea. (I'd say NULL values from the database or other softwares should have been made effectively differentiable with language-defined null values, but this is another issue) Apart from this, the constructs in question share the same semantics where their role is to define variables that refers to values of a non-local data storage, so making the lexical variable declaration statement look like the others is not inconsistent with the current language syntax, whereas the "use" construct after the argument list is inconsistent with the ordinary function definition unless my proposal [1] is accepted. [1] http://news.php.net/php.internals/39071 Moriyoshi