Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108202 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60963 invoked from network); 20 Jan 2020 04:21:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2020 04:21:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7680A1804AC for ; Sun, 19 Jan 2020 18:30:11 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 19 Jan 2020 18:30:10 -0800 (PST) Received: by mail-yb1-f180.google.com with SMTP id o199so9060821ybc.4 for ; Sun, 19 Jan 2020 18:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=dQPzqOwd0SCn0migmu0lVc1vh5a6hEWhvDnK+NQQzk0=; b=ndIhXraaZQsD1f3qVh9MjuCD7WhYiEV094s6mQ0Tga/a6XF08maaS5toJihqsEfCE7 YSuqKX41y3OwySNTjPZBCBcKwAMqOtgTJy/gJ6eKZqvx1mkzJzX9yjKwacx3pHwwey5u eEWfCJyAAZq1s6xsUfHKcwgIClZcTBBiicK8bYIsYdvGz3fl+f6cMPBicLzlIHzgItl0 v7ak1u36b2+uf3Km2k0hv6S6KEqoZ0MShM1AmMP4WnpU28mDA8qprKeeqrBolVzXfULA hZ73R2zqZVkJ59QnfUeQ6/aJbNAPKq2lKlzICxAMhZO8MXu7OMC7eBRbIvRIehvhvUnM eFcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=dQPzqOwd0SCn0migmu0lVc1vh5a6hEWhvDnK+NQQzk0=; b=hrks/O8fXuZGnJ7G+494szh8iXcwKy0TSBqzSarmNVBGKw7gWBeQrhLZti9Ns/znIF ZKoxXPEeQQKbZ0yx1f6Cn19FbWzK0Pccup+bj0AKyZmFV3UhoK9f2+K75YTvD8mDet9H WotVJLaTIlcS8aBx8SB0pI99hQj/ysJd1H2mWewIRzOJdgXcdLdwFTUzOlgpwrMfMp8a 7WF0l9qYBqEgH+wi0s58JIJqfSmcJh1Lo1YoCnrBdRI+wgbzPFRs450l7K4He6b/4Qtg wkfAPswm8Wb0konqD1Yh3+XW/GyBYXpGNKkRZVpajYo6H1l22XNN6gjxxQalO1TkP62F BHnA== X-Gm-Message-State: APjAAAXyWvwXfK1y3A19XhjbkiiJf/bQJbt2G9rQNYzWan8aW/lyd+J9 pJ60pWiIJiN/91NDV9+HOUlz5VH1Q6Xj/g== X-Google-Smtp-Source: APXvYqxNfjX68RaQhUOkmYLQsuTLnDhs8Pt3YqKZcOQmsaGiZjv5OP5/mP1+skQSPkOBf4Bk29Tt0w== X-Received: by 2002:a25:1f09:: with SMTP id f9mr38968547ybf.322.1579487410228; Sun, 19 Jan 2020 18:30:10 -0800 (PST) Received: from ?IPv6:2601:c0:c680:5cc0:1958:acb8:bd02:51b0? ([2601:c0:c680:5cc0:1958:acb8:bd02:51b0]) by smtp.gmail.com with ESMTPSA id f22sm15492116ywb.104.2020.01.19.18.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jan 2020 18:30:08 -0800 (PST) Message-ID: <2525C530-9FF8-4C34-9E92-26E8380B53DD@newclarity.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_4C650DA9-43F1-4CF9-81DA-421E610FBA2A" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Sun, 19 Jan 2020 21:30:07 -0500 In-Reply-To: <191B2F45-C9F2-49EB-A19B-9C3D8A705AD6@zort.net> Cc: PHP internals To: John Bafford References: <5DC86728-1BBF-4DCA-8A6B-9B0B190DB99D@newclarity.net> <191B2F45-C9F2-49EB-A19B-9C3D8A705AD6@zort.net> X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] Typed array properties V2 From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_4C650DA9-43F1-4CF9-81DA-421E610FBA2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jan 19, 2020, at 8:42 PM, John Bafford wrote: > As a thought, perhaps the syntax '[Type]' for an array of Type. That = way, you could write ?[int], or [?int], or even ?[?int] and there would = be no ambiguity, and no need for parentheses since the array brackets = would serve that purpose. That syntax was what someone suggested on the prior discussion. I = personally dislike it because I have used PHPDoc syntax of `type[]` for = so long and would rather see us stick with that. But if I'm honest about it, debate over syntax is probably just = bikeshedding at this point. =20 The more important question IMO is, can we actually implement typed = arrays to enough voter's satisfaction and w/o a significant performance = penalty? -Mike --Apple-Mail=_4C650DA9-43F1-4CF9-81DA-421E610FBA2A--