Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106136 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8850 invoked from network); 3 Jul 2019 18:41:57 -0000 Received: from unknown (HELO mail-lj1-f194.google.com) (209.85.208.194) by pb1.pair.com with SMTP; 3 Jul 2019 18:41:57 -0000 Received: by mail-lj1-f194.google.com with SMTP id k18so2997646ljc.11 for ; Wed, 03 Jul 2019 09:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ViIIDrHn30XTvti/Semc3MC3lOlpZZ8g0sT5uGFFaw8=; b=BGwNu3vM9yk4oddaXPZLIUPcDmI+d1IWcyvJD8aZ/TbbGrCEg9cgGUpyukdfZSqkym dvNAyrXp0xAvlBXKBIOO8xkOI5TzpJNBYYZpnvmewxyswdrfUl5SOQVaiauyfjbBxr3o Tdas7T8cZMZXitH5pp8G1lastMPpBHxx1IKVr0lBq0GNQ1hMGs+6q+FZ2BMh4ipSZTpD iGZREVSgKs9DWpsaHjkUsm6GeqCe2X6ZKTD0RrK2/L0D1PjrxDT3Es/vkDT1t+p0Z5G/ RHiQjJ/Ln6McMRtq/+WnUIH0Yu9svgfy/+6c1MDTbaBLtz80J90XkEiTR3B1lWJ+iuXD Wyng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ViIIDrHn30XTvti/Semc3MC3lOlpZZ8g0sT5uGFFaw8=; b=sqa12XlFuJiokiYVEOvOF2qj3P2u40kBJwfAYGhV4hXdm965KpJTU7x6mstB+Okqun k+0vJaecZQcefktfgg7PK6PDIYY7SEPCkd0MHL206gjuPIfKQOQAaC/Xqm0y55CGRX/Q ibjyCL+K3t3WvpVXo7S0x/HiWHWjoxqBz8hPQSK7EY++ICyukLnHn+8vS3c8vUxFiM2F H3WNTgp24ndzRgLQb5SOoMpZIna4IUYsXbKQDnGFR18R2+pvcI8/6/GKRnIzzp5Rrhmm i9SWcSGSWcJafZjUvt+oJXq9qTzIaE9CswsjVS89QlgZvqYIgtVljEr5dbKPjG+rx/3M gzOA== X-Gm-Message-State: APjAAAWLsutbnkBOIm+fDoOuaM0WEXJZY1Mfoh1jTIjk6ZYz/Oe8oW7B lM98gqUgmSPm6PztvaBFv9iaBUjrLBRyd+HFRHE= X-Google-Smtp-Source: APXvYqwmLDe0KkUzkqLbKD6JmYEIOioXxIGedn3MVNsFgcfgX2w2vOwCsix0smQXuWPUFt8KabTxQoRmB4VJ/77gVco= X-Received: by 2002:a2e:2c04:: with SMTP id s4mr21628980ljs.61.1562169607963; Wed, 03 Jul 2019 09:00:07 -0700 (PDT) MIME-Version: 1.0 References: <1562149108.866677.18420.33348@mail.rambler.ru> In-Reply-To: Date: Wed, 3 Jul 2019 17:59:51 +0200 Message-ID: To: Levi Morrison Cc: Andrew Gromov , internals Content-Type: multipart/alternative; boundary="0000000000008fc759058cc8f4d1" Subject: Re: [PHP-DEV] [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets From: nikita.ppv@gmail.com (Nikita Popov) --0000000000008fc759058cc8f4d1 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 3, 2019 at 4:41 PM Levi Morrison wrote: > 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. > I checked top 2k projects with a 2-3 months outdated data set. Here is the analysis log: https://gist.github.com/nikic/b5f811e0423bf051f4492cd6e0c0273e 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. Nikita --0000000000008fc759058cc8f4d1--