Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109367 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89734 invoked from network); 27 Mar 2020 01:22:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Mar 2020 01:22:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3E13A1801FD for ; Thu, 26 Mar 2020 16:47:29 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 ; Thu, 26 Mar 2020 16:47:25 -0700 (PDT) Received: by mail-pf1-f171.google.com with SMTP id 23so3612009pfj.1 for ; Thu, 26 Mar 2020 16:47:25 -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; bh=0ozbtXU+IfZ+XvoLcqpW7bQjF10ExL+KDz1CGCA8hZM=; b=H58CB+Fbwbk8Z/3RP695WfOB0ka6/ltndIdYasxrGhIDnXkvJA+OQnu+GYQw+MFzgc vyVFiyLR3irxz+kUk0h0S2oefhj9Xs+jMbL3u6a9BhNsqPJJ0cm1GpZqa21CTXn4HDpI PTCPXLxZjC8dG45Mh08SNxbE7N8wv0ZfouGThxCCB7+9OS68iWIwAp085suWvDCRYTYL RI4oaenrUqX9rtV0qCvTFnBRaS5jmat5EOMLU4WJj0oKyc7ShFWZ7ts7l/J2ugytN3qU D/v7LvXfWrp5p03332FcJiGrNcXpherp0InqHFu5NT6VeLh5WnnJWeybhQRIQDS6N4Os iQKg== 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; bh=0ozbtXU+IfZ+XvoLcqpW7bQjF10ExL+KDz1CGCA8hZM=; b=qYZ90ZPBZsenrt9xeCkxu4SBpKjh/sMOY8TWTxxUJPf3zgDxbMgHutlPsM897JQzc7 FvWZ3cizksWXa3D0Eho4Eb3cp+xdISgzQEdzOgTR74xwmntXx5mhUIkmyOsEPVmL37q/ ZemKh4UEsmS74aqoFFIur+c9Pe61UA/QEH7bJwx9Btcaif7lAZUWeQhqude8axtkD/lx y8f+1No936zRsbvh1UiINF1w5fWOZePgryb7D7J3bbOF6nf1/m/kDNCZ7TPcaJ9W7NWQ 9YU0j/+gVY8vDTF5kuUeTBh7ZYiSKMkzTCusBZjwyr7vH+za7ylvEl70jKtjBCYJMzqJ 9+kw== X-Gm-Message-State: ANhLgQ0UERxkep2t5YVq59dYtAKnEI3SJhF9HWYf3mmkayaSp2F2S6m0 lgY4HCRA4LN59h8XwOiGgc3qCbXeN7EFSb4N2fMWoTO+ X-Google-Smtp-Source: ADFU+vsiAVPF4+k8Fs5zeYlegjkn0mGWrqxO1o1pW6ON2t3F0rNU445GQhs3s46OwvMaQhe2OxNXxFnyhMFIE1V3jTU= X-Received: by 2002:aa7:850f:: with SMTP id v15mr11185521pfn.119.1585266443971; Thu, 26 Mar 2020 16:47:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 26 Mar 2020 20:47:12 -0300 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000044711705a1ca9ba1" Subject: Fwd: Intended proposal for class visibility From: phansys@gmail.com (Javier Spagnoletti) --00000000000044711705a1ca9ba1 Content-Type: text/plain; charset="UTF-8" Hey there! I'm thrilled since this is my first proposal. I'd like to propose a new visibility schema for classes, based on a explicit group of namespaces allowed to use the class. The goal of this proposal is to provide a way to cover from a native language feature what currently is usually patched using "@internal" annotations. If the visibility declaration ("internals" in this example) is present, the class could only be visible for other classes on the list of the specified namespaces.