Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47712 invoked from network); 29 Mar 2016 23:16:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2016 23:16:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.193 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.193 mail-pf0-f193.google.com Received: from [209.85.192.193] ([209.85.192.193:36290] helo=mail-pf0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/4A-24137-EBC0BF65 for ; Tue, 29 Mar 2016 18:16:15 -0500 Received: by mail-pf0-f193.google.com with SMTP id q129so4396217pfb.3 for ; Tue, 29 Mar 2016 16:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=yaCWRn3c0sJZpg7+TsonCH/HWLKGa45CeUBj4jLnDN0=; b=eeJZnY/rTtDZmHhiFu9xGGUeANr/72i0DREI3rrQC4tI1aOb5ZBqK9TbrM8dymMH8y HPncLRuZav2XcdGQXL+eV8fmKyLgKRaCZ8lYWZc0V6VwFIhd4OJk9xs+YQbRjB4x5eUd 4d2AOzwFSoNNoOwYTTTSQrx7+MyniiMdm5VJKBDsbCGjRBQuRQaPo1sM3aTiktq0+f5N 5XpMitwjSIX2/THd942IK8U9LdTZBIrJ39IneM2BkmCX50oUpZtn/EHWlMVxrigVEowu BdfrqGyKVqfsSjoNis3mBlwZI1SOf5MRosXYVoK2Yxs9l0VXLvBhJ8nBaoh1Z55oFhP4 xQmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=yaCWRn3c0sJZpg7+TsonCH/HWLKGa45CeUBj4jLnDN0=; b=AdhVYGcin9Y8bHs+/FZq94P2K2SieZOHET9BUg0UsoHFr8cT9Ky1A4/nefu7Hgd2W7 66kLwjrA+g1Obd6ujxxCRNhtlp+eSRzPukaMevA677YUiH+iaRgFWycf86gM1fPalHWr RDxYgkgZn+Zq1LEcBqcijB9ySmp06gyFFG4B2XWbzopYi/NoWEsf7MB4z2/O43GeNolU wJ61XGddobctUxsUrlszMUeXn9HiPuwaU+ls0BnImfRJ9dkJ8Xq9qzZ626ScJPktaqcl cidLBYfETE2leuD+fmlLgaEmBw7+UFoMZhvkvzuZPuG+h350/PZhe85bncf4AJm7r5Av DT2Q== X-Gm-Message-State: AD7BkJIldmstimBYhOSnUtxl9UKox6iBUwdqRzqKAlSLqD4xZgCjmfsDCtrK0WKQTJoWaCOxS4pDBo1JfrgKWA== MIME-Version: 1.0 X-Received: by 10.98.15.135 with SMTP id 7mr7608233pfp.142.1459293371403; Tue, 29 Mar 2016 16:16:11 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.66.163.232 with HTTP; Tue, 29 Mar 2016 16:16:11 -0700 (PDT) In-Reply-To: References: <1458149992.3969.2.camel@kuechenschabe> <1458151531.3969.8.camel@kuechenschabe> <1458153695.3969.16.camel@kuechenschabe> <3F.70.02405.6803BE65@pb1.pair.com> <56F01545.8080008@gmail.com> <56F14572.701@gmail.com> <56F15EF5.80006@telia.com> <56F16023.1010002@gmail.com> Date: Tue, 29 Mar 2016 17:16:11 -0600 X-Google-Sender-Auth: 9lCSkhgPHu9JApHoI6alPIVfNy8 Message-ID: To: Dmitry Stogov Cc: Joe Watkins , Phil Sturgeon , "krakjoe@php.net" , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: levim@php.net (Levi Morrison) > 2) The handling of multiple properties in the same declaration statement is inconsistent. > > public int $bar, string $qux; // this works > > public int $bar, $qux; //this emits error: Untyped property A::$qux must not be mixed with typed properties > > It's better to allow type only before first property in the list and apply them to all of them (like C, Java and others). > Is this just an implementation issue? I'm actually glad this is prevented because it's confusing. Is `$qux` typed or untyped?