Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106138 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24890 invoked from network); 3 Jul 2019 20:04:47 -0000 Received: from unknown (HELO mail-ed1-f43.google.com) (209.85.208.43) by pb1.pair.com with SMTP; 3 Jul 2019 20:04:47 -0000 Received: by mail-ed1-f43.google.com with SMTP id k8so2839033eds.7 for ; Wed, 03 Jul 2019 10:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tSzHTXFTG8zXCaP0eIlGC4UjTrva1diGWajOvUDKhRI=; b=qYvFK4Dxvm61DM8AFfwzmxkAufgjbtgtrp4temr6qYuQqnrng3HXh6KqkSzYXIyzeI zwMSfywRiUYi2eiuxD3w5Abwaq3YWhypXg7sgP3oCU6vrRxSwzl5OrxsgttoFRXNu2bz PC1Ag9kUM9bnxE9uIm5/an0iKXKJiMklURcTv3AomR5yeD4uG6uA3EmplkGAW7rKIvma tiwTgzDcr2PDEfIwJY6dnMEqW/STeUUYqUMkry4KwNIo063X7guxaf5iXkEgKcsWmN65 S+bsjCcjADI7S8cbhz8I2i3/7mA1rRSo0EfLX1BrBLbNlsMpB0D/Zzk0fU4HaWL9sjp4 oh1Q== 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=tSzHTXFTG8zXCaP0eIlGC4UjTrva1diGWajOvUDKhRI=; b=jmHP1Owr3pVXsFGYpxRyiU2kSZYuo52fbU4LUm8by780UQ9RcbBAx2gVmlIJzM/7sK fJ0EG1O8MCsVb/Ecjro7CvQUbh9/jyz5afZlPM86sCIUzofAuIDeR6vx84vz1Tx0IrIh Zt6p8pWjjPf8BwoOsrum7yom2rOibu3DWe3ZPtkPXmxEwTSDgMtsw+Ao/NlGneinJP2C ACG4FF/PKIU3OMQEwdaTy3mmkPNFR5QGvpuTm1exXx01GuoBfLH9VouBrpjS6ANIM1Gk +fSO2E2boSfK8D+eBgJWTeYhtI5wWRzGVnPv821jWYlgqi617dvwqZFqHDgJT1l6qkZf LewQ== X-Gm-Message-State: APjAAAUOOUlVs9Xakkt7EQf0mSJqpBW89ZInTEkLYCgIdHhDtM2/UJl2 GR3lAzLcSKudiqxtJnu4c7E= X-Google-Smtp-Source: APXvYqyHekyyQGKzBpff6mPNmMBnPTph/P4f93QnONp+RRsbNA6e4VVKMZro2Xp6v+Ks9bgLKQMxDA== X-Received: by 2002:a17:906:924c:: with SMTP id c12mr35711212ejx.60.1562174578712; Wed, 03 Jul 2019 10:22:58 -0700 (PDT) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id i1sm571627ejo.32.2019.07.03.10.22.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 10:22:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Wed, 3 Jul 2019 19:22:56 +0200 Cc: Levi Morrison , Andrew Gromov , internals Content-Transfer-Encoding: quoted-printable Message-ID: <43EE0CF8-B66E-4ED4-8B1B-418BA0751505@gmail.com> References: <1562149108.866677.18420.33348@mail.rambler.ru> To: Nikita Popov X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets From: claude.pache@gmail.com (Claude Pache) > Le 3 juil. 2019 =C3=A0 17:59, Nikita Popov a = =C3=A9crit : >=20 > On Wed, Jul 3, 2019 at 4:41 PM Levi Morrison wrote: >=20 >> Was any analysis of usage done for top open source projects? I = support >> this direction, but would prefer to know its current impact before >> voting. >>=20 >=20 > I checked top 2k projects with a 2-3 months outdated data set. Here is = the > analysis log: = https://gist.github.com/nikic/b5f811e0423bf051f4492cd6e0c0273e >=20 > Overall there were ~2.2k individual uses of alternative array syntax. = To > put that into context, there 888.3k total array accesses in the data = set, > which puts usage at about 0.25%. Uses are usually clustered, i.e. if > alternative array syntax is used in a file, it will be used many = times. >=20 > Nikita It ought to be noted that the alternative syntax is used essentially for = strings, not for arrays proper. In fact, I expect that it is used almost = exclusively for strings. That means, most probably: ~2.2k uses of alternative syntax for direct = byte access in strings among 888.3k for byte access in strings AND = direct element access in arrays. =E2=80=94Claude=