Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108095 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80185 invoked from network); 11 Jan 2020 02:23:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Jan 2020 02:23:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 28D4C1804F4 for ; Fri, 10 Jan 2020 16:29:44 -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,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-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 ; Fri, 10 Jan 2020 16:29:43 -0800 (PST) Received: by mail-yb1-f174.google.com with SMTP id y67so1451024yba.12 for ; Fri, 10 Jan 2020 16:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=i1Xs8myNJp8ldW+kdblpG3ppi+AFgwaIlekmUy3Qahg=; b=E0KxsTBghpx86fIs/LNQz8L1hJ1wyTMxkMSY0FlFhxaHSm/v/+DoIBHcclrA6kbJY4 BBNR1er57OLO84vLa9G8kXuv4B/R69kPEfZvhero7dyRAkJ/digCohv5hQbN68357ntj sc1suEDwhrJEWA2zxWEFsyjTYf91jjDCX/X6B+SreEIVtih5dm45dqcStwo4hT2ULWx0 rWJUJcORMG6T97lTnT3jesMLI/0xfdl6GTqcGvR8p0m9hMwohNySZSkPGT734B9wcqhv anBoJV7gEiF0YwyaXChMoF3trBPCDdvXfXl7AEIbQosLzSFwmqey1lmDkMuQBz4fh7wN 1RUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=i1Xs8myNJp8ldW+kdblpG3ppi+AFgwaIlekmUy3Qahg=; b=K32iXZ7KPRptGPT9MfS/yfEoeVNXHni88m2GsiEnFeS//f94Kfi9nVNMoZa0hdqV7A VjRBpD2IkptLtrFkhoHJUEU/XdfN3+kbDD5KfIP2WIGh+aS48KaichONlZ8kAIeiX0S0 IfZBD0+zFGmxjd6zXVQq1R+fsQsWaJKi0LQXHQ69ava0c7fC4vgjyOxwthe9t12mmrTi AALGYOxUbMiybeWTzeeFMREocRqWa+qJFWfCIlqArJyySOZcyQyCdeq7xIvU7IMmcD1t /faJ2ORMe/508P56Il55bh1rUA9v74RWKSUCeoUsUDg+bbKwufa94K3YheaJY4a8mVW0 JzDQ== X-Gm-Message-State: APjAAAUaeX/u6IoId2hrgvlCaMbKIo7Gp4Hm7ZOaGlAMV31yOetuiLoy rR+HqTsfTvT7XCbG14XtZsXIJw== X-Google-Smtp-Source: APXvYqyq8o/ZXYFFsYMmK7+jRw8A7GcCki8r6lTlr89KvMeXO5XA6bFUf8v6Vgmn5kuWPt+ENvh0CA== X-Received: by 2002:a25:5f02:: with SMTP id t2mr958185ybb.145.1578702582190; Fri, 10 Jan 2020 16:29:42 -0800 (PST) Received: from ?IPv6:2601:c0:c680:5cc0:b4fe:1c4:d451:7505? ([2601:c0:c680:5cc0:b4fe:1c4:d451:7505]) by smtp.gmail.com with ESMTPSA id q185sm1776843ywh.61.2020.01.10.16.29.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 16:29:41 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Fri, 10 Jan 2020 19:29:40 -0500 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Stanislav Malyshev X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] What to do with "$array[foobar]"? From: mike@newclarity.net (Mike Schinkel) > On Jan 10, 2020, at 2:58 PM, Stanislav Malyshev = wrote: >=20 > The first part seems to make sense but I don't think losing = "$array[0]" > does... I get the consistency argument but I feel most people would > rather have this useful syntax working and not worry about the fact = that > it's theoretically "inconsistent". Consistency only helps when it = allows > to make useful inferences, something not working is rarely useful > inference. Agreed. -Mike