Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112198 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67286 invoked from network); 7 Nov 2020 21:09:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Nov 2020 21:09:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6CE2A1804D8 for ; Sat, 7 Nov 2020 12:30:41 -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.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 ; Sat, 7 Nov 2020 12:30:40 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id f11so516988lfs.3 for ; Sat, 07 Nov 2020 12:30:40 -0800 (PST) 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=yksaGtGWNv2SMu56pKjC6iIucrBdNpMewQ1erf7W5TI=; b=EEZu32in9UIQR1Tr+jqqR7T4/dPU7HKCLSfcka26zTEaUPhimzNsDnz3HXsYpT114d t21hf3Km14fdSzwXwR/qgH028CTJT10lAbH78GS4broHnqtsAZS6CUUw3mijfCrCwpa+ 6HRtdA2ypyCO1Jz6Vz3XJpQuHBE/EC6RqfBG+y1il+mC6C26Mlsp66imQ2G2ARlzgd7D prXvj+XprDifeBpd5YPB3EIKcjoOH1GpUkLgZKzxhqgU3FOb/p+GJo7J0dloqzd3xTX8 5Ld8uyZCzGIkqENfv94qfnrMYpg/8W08I65PNhTCjJU9vWo6i4NgdgEQbOxH7k3kL0+r SgBg== X-Gm-Message-State: AOAM532TEdepFJs1rwMV5uh0jQ0fAiAbeJ2Ng2aQTBba4BIZYolP8nj8 11k2OzWCb9HZVS3gpke6Az7I/MRjwxNpcQ0QsQyaFQ== X-Google-Smtp-Source: ABdhPJymq90t1iFJaO0UKkyUTuXq37sndylTFQqV8bgvCXl4GzOq6Z0u+HuhaCJE/uxPFFWq+YMsg0fWJe6Nifa0/CE= X-Received: by 2002:ac2:495e:: with SMTP id o30mr3235511lfi.76.1604781038335; Sat, 07 Nov 2020 12:30:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 7 Nov 2020 14:30:27 -0600 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000bb8e0e05b38a3331" Subject: Re: [PHP-DEV] Rename PhpToken::getAll()? From: pollita@php.net (Sara Golemon) --000000000000bb8e0e05b38a3331 Content-Type: text/plain; charset="UTF-8" On Sat, Nov 7, 2020 at 3:09 AM Nikita Popov wrote: > The PhpToken::getAll() API introduced in PHP 8.0 is of course inspired by > the existing token_get_all() function. But arguably, the name is not that > great. > > The reporter suggests to rename it into PhpToken::tokenize() instead, which > seems like a sensible suggestion to me. > > Any thoughts on doing that rename? It's pretty late in the release cycle, > but if we want to rename something, this is our last chance :) > > Do I love a rename 3 weeks from GA? No. Is there any good reason to object? Not really. The change is super minor and the functionality is new and as-yet undocumented. Go for it. The reasoning in favor is sound. -Sara --000000000000bb8e0e05b38a3331--