Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120384 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78626 invoked from network); 22 May 2023 12:09:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 May 2023 12:09:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0A535180505 for ; Mon, 22 May 2023 05:09:01 -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=-0.7 required=5.0 tests=BAYES_05,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, T_SCC_BODY_TEXT_LINE 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-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 22 May 2023 05:09:00 -0700 (PDT) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f42c86543bso38731145e9.3 for ; Mon, 22 May 2023 05:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684757339; x=1687349339; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=jauyxO3YfIGxXLhaRu1ICleGmwHLRtNJCitm6ujkv3Q=; b=Bz7NqD08O0E3630mOpolJRm79LgTXxLNg1ayL51JcfJtk/Hq99O+lYhDMYddCA8S9G 6/QmssJ2Pcs3tTBTHSm8057P9I/dsDuUGqkgHWhzaZY4pJKIjKxrz315+3YTfnSXRdT3 cN8oiqqy7hd6skxe6Utr52aA3GU8pHXpXUF1uJn+PUrG43R7OYS3jsKx5UrmR4y3ALNI pr3Udaas2wIfOSCviu7VBuIoQPoTK8SfXFpmMvcaM+7QCuZPYSb57mBWzthTN/JPLKbl cBt2+nv7PTsp+wjGSJFS1BdHJESBUjEtelna9fEKZlCUMA4PK0VDFDVNZB9FTnwQdtQx u0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684757339; x=1687349339; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jauyxO3YfIGxXLhaRu1ICleGmwHLRtNJCitm6ujkv3Q=; b=L7sQ5amJUYg2F6QB7pC3aLxBz7Yxi01lnB7NQXsPf35Hzy/uJYhBF5kjfGgcwTl3cu dSYV4CQ05qEH3+h+Nnj12wj6nDPN9EHe9/a4m5t7u4kl8KJ4AniN/1PWykShhI/vJAWs cZ0LzGstA16ZL0U8KDxOrDaJKHBO5ARxSq7G282ZhzgeBic/nYQr4/6dZ2WB2kEXhvqk drMX3wytjv0n9zeRlyBaniJ9reylMu2EFjGJgcZsxbjCMINfQfQ6YUO1paQCtzyQVQvp JZyuBbwgzmQyBth0UMYLU1QHMRv9x5VNJEJl4wndIZoSOmLwepPwawC5rJv6JfmT/gCA b4YA== X-Gm-Message-State: AC+VfDyWXd1zrguf+QKt1zRe0EaLPf880b+hjne3jVcUqcWjHebbNz9T nfpyqwM2XP//6h6L74fWdhPf+B7AAygU8JL/RgK0E4tiBZQ= X-Google-Smtp-Source: ACHHUZ7dSVcjNT1MjMzhbuebOsBAfIgiP+dvnxt5pn2op1cFh4arFNYWPHo3fRFgv1PEQyLEECCnLdaGOu/lVwRWJTI= X-Received: by 2002:a7b:cb92:0:b0:3f6:82a:5d1b with SMTP id m18-20020a7bcb92000000b003f6082a5d1bmr581505wmi.34.1684757339107; Mon, 22 May 2023 05:08:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 22 May 2023 13:08:47 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000baf4f705fc472204" Subject: Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override]) From: rowan.collins@gmail.com (Rowan Tommins) --000000000000baf4f705fc472204 Content-Type: text/plain; charset="UTF-8" On Mon, 22 May 2023 at 12:49, Dan Ackroyd wrote: > > So one should be able to see there is interest....unless of course > someone is so bad at basic human empathy, that they can't accept other > people's lived experiences as valid, and will only accept something as > 'good programming practice' if they have invented or experienced it > themselves. > I'm not sure how you intended this to be read, but it comes across as quite aggressive, and doesn't really move the discussion forward. I think Dave's last sentence was much more productive: > So any attributes added in the engine which declare some behavioural change should be limited to those able to provide a tangible benefit which can't be achieved in userland. That is, we can separate two questions: 1) Are there users who will benefit from marking which methods were intended as over-rides, and which weren't? 2) Is there a significant benefit to including it in the engine, rather than in userland? The answer to (1) is probably "yes", based on experience in other languages. The answer to (2) is less clear - the other languages referenced all have mandatory pre-compilation stages which can and do perform static analysis. Regards, -- Rowan Tommins [IMSoP] --000000000000baf4f705fc472204--