Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110225 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74590 invoked from network); 20 May 2020 23:34:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 May 2020 23:34:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 09E7B1804F6 for ; Wed, 20 May 2020 15:13:33 -0700 (PDT) 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-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 ; Wed, 20 May 2020 15:13:32 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id f134so3912093wmf.1 for ; Wed, 20 May 2020 15:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5Jjt9HpeclPobS4Z037+DxPbYbgGAOe0sNYZ8DKbqzA=; b=nbo9OOjrwG+sRT0lQYk/jaMvzeINPdajXq4sThPZ1ob4vLPrnDWb1ShusQEmCyPQMI mSXW6IVRvUaavnUF/bhqlYK93dy1OFUVUfKieXNgKbhLCY7nCxmxDX3MNWyo2yVrh2N+ qCsxvF1PMIxH2D68xjI9/ixRmsX+9wRIFST3Civde2bJ+IkugiwSrmFHKhw98k4tmJ5j 29NEN3mLhh0uLU1zviKod/8lA5+kABsnwKmxWhn7VuRJNZxz7VY+DgdV/shICyiZFims gRvYJ/CESGXljfbvIZXP59W6fuanfEjsl7ciA/m0je+MxRO/j6pmh2cgay94cE/8dwgh s3Uw== 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=5Jjt9HpeclPobS4Z037+DxPbYbgGAOe0sNYZ8DKbqzA=; b=cNwPZcIG1kYtFg1DwhW6YLqCAfqzhQGL0xLqzZUOZq179fGLDgFpUTiXY48b/vL0qA S9BH0j+YlN3SnyWp5gr0LuVBbNPBNgVFGC3clU2UjnCtCK/Pn9KqTpEVi+2NIDFCeoSx RjCr+dXR4K5k+yXKk+UNgslmJEWHdYAi8rV+bXJmEZy6qfX8CqGcM9h+p+Vvkk8DLL9X eACagMPh6ZOns2/5pMxjVUkh9QyXHK+ePhVLssZwAz7MRg2tX/XV0tGXVEjMa6ctODHJ /xmOixuzioTKLKNTHD6YeriJPqdYbzoVolrkXjBqXEu46xkHBHiPR5B3zpF/+oaz5w6a DT3A== X-Gm-Message-State: AOAM533Rbv/rQu9qmw9KzToESaGaJobFw3Sv4W3MK0dU4bNlPPnZ2goI ZvnUZCUgHKGNbD11eR2ZrTvMKTd0ftfCyyzDCBsb6Q== X-Google-Smtp-Source: ABdhPJx8qHBOWJfz+HKvrKuNxGi3rZaYLfaBbsQxYOq08khpHLMoOQuDw4nDTvNFXBIi9nhU4Nv4qKQ/tS27FBVCsSY= X-Received: by 2002:a7b:cfc9:: with SMTP id f9mr6210008wmm.107.1590012809842; Wed, 20 May 2020 15:13:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 21 May 2020 00:13:18 +0200 Message-ID: To: Ben Ramsey Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000b8283405a61bb4ad" Subject: Re: [PHP-DEV] [RFC] Amendments to Attributes From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000b8283405a61bb4ad Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2020 at 7:53 PM Ben Ramsey wrote: > > On May 20, 2020, at 12:07, Benjamin Eberlei wrote= : > > > > 2. Rename PhpAttribute to Attribute in global namespace (independent of > the > > namespace RFC) > > > I suggested in a previous thread that we consider renaming `PhpAttribute` > to `UserlandAttribute`, since this is the intent of the attribute, and it > helps distinguish it from `CompilerAttribute`. > > I noticed that the compiler attribute is actually named > `PhpCompilerAttribute`, so unless we change its name to > `CompilerAttribute`, I don=E2=80=99t think it makes sense to change `PhpA= ttribute` > to `Attribute`. Perhaps we change it to `PhpUserlandAttribute`, for clari= ty? > Ah that's a good point that still needs to be clarified. We realized that PhpAttribute and PhpCompilerAttribute should be merged, because the difference doesn't make a difference to userland code and it complicates things. For example enforcing that PhpCompilerAttribute is just on internal classes would not work for generated stub code in Phan/Psalm and so on that "describe" internal code by imitating it in userland. This would not be allowed by the current implementation and lead to a compiler error, lets say if we imitated Deprecated for documentation purposes: > class Deprecated {} This file could not be compiled by current implementation as an error would prevent Userland Deprecated class from using PhpCompilerAttribute. > > Cheers, > Ben > --000000000000b8283405a61bb4ad--