Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71159 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48921 invoked from network); 15 Jan 2014 21:56:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 21:56:29 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:53382] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/00-48719-B0407D25 for ; Wed, 15 Jan 2014 16:56:27 -0500 Received: by mail-lb0-f176.google.com with SMTP id w7so765982lbi.7 for ; Wed, 15 Jan 2014 13:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=tqBZAxFY+SbWZ7Bor/OQVZOsqQOK0/9m+c/HMK1n6b8=; b=D33lUkp332oYiJsqf4mqXD+SB32mzqTJzee1UGG6rdaLKQYqX5iaPkEEUWVVcEd9J4 v9vtQ/2nFmCX/0xeMuC1vojj3kjNkl6UCjoXNklPhvHqxRHweG1uG/HM+MxTxNYiZ/q+ kjq4k9PgPYkChHvL8fjRUadJnZGoSCxKQ9gkT2fdyIChBNfhI+P5J6xryuqPyj+VDrDD 2M7VJmzWcTCmnAZ2oGr+nfSsOrgwGk5wKJ35SZ8ylukJr/K5ucE7B/gMdF+tFYWLK32b EDTgrka14ethmZuRXmFFwfDGoWRpWFFHaOLEzo9FztI1r8UW2VMkGZ1vY6w9x8MKVndp giFA== X-Received: by 10.152.2.5 with SMTP id 5mr2969494laq.21.1389822976653; Wed, 15 Jan 2014 13:56:16 -0800 (PST) Received: from nikita2206-n56vj ([46.41.119.45]) by mx.google.com with ESMTPSA id bo10sm3180650lbb.16.2014.01.15.13.56.15 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Jan 2014 13:56:16 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <93EFD00C-017E-4DBE-A9A4-AEA40109D354@strojny.net> Date: Thu, 16 Jan 2014 01:56:14 +0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <93EFD00C-017E-4DBE-A9A4-AEA40109D354@strojny.net> User-Agent: Opera Mail/12.16 (Linux) Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: inefedor@gmail.com ("Nikita Nefedov") On Thu, 16 Jan 2014 01:24:46 +0400, Lars Strojny wrote: > Hi Philip, > > On 15 Jan 2014, at 19:17, Philip Sturgeon wrote: > [...] >> >> It is aimed at PHP 5.6, and so far the release managers seem to be ok >> with the idea of this potentially being merged after the alpha >> release, so this should not be considered an issue. >> >> Everything is open for discussion, especially the current error >> messages. They are not perfect, so let us know if you have better >> ideas. > > Very nice proposal. One thing I noticed by reading the code (and the > tests9 is that it bails out at the first offender. Given I hint for > Foo[], and pass [new Foo(), new Bar(), new Baz()] it will only inform me > about Bar violating Foo. So will calling foo(""); where foo's definition is foo(Asd $asd, Qwe $qwe); I, for one, don't see a problem here.