Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120385 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79984 invoked from network); 22 May 2023 12:09:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 May 2023 12:09:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 82ABF180505 for ; Mon, 22 May 2023 05:09:39 -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_H3,RCVD_IN_MSPIKE_WL,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-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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:39 -0700 (PDT) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1ae852a5330so19707655ad.3 for ; Mon, 22 May 2023 05:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684757378; x=1687349378; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6SZ62Hedwmu4/hq1Nw4qBrYormgm6ahpN80swsUTLxM=; b=D4404yVqrmIHcl7yAWK6I6Kn9p3zTqHN1qp8cY4edKDJHl/7y8Uj1Kh1MlT0Y2uoAw i1ssbhdEUFZzh2ZS7zOhLaf/OA6TONdy/vE4tIWGqn6m3hNqgFf2Q6afl01IwD0+H8Fy IAannQscwOjV5ErKdyTYGZvYT3gtzuizAxg+U+To7EVp/J7oGJGGrgtuwBn6TCPnswSA m341T37Rp5MyUItA6c60Ms8MtZciRmZ/oGh+EIIwccLMdq+TLgSCfoVnyzl/pouIbEQF 8bkslZHMQt434RAg+vov9t0iIZs+tEbJJ/DP979d+fadsDeYZh+/9YqTqdrM09t5LuRx suGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684757378; x=1687349378; h=cc: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=6SZ62Hedwmu4/hq1Nw4qBrYormgm6ahpN80swsUTLxM=; b=UPuxsdbcz0/0hgVK3UXfJDQm/1kePNe8jvS5hvUdmhj/KJnCNbqAWnZ5HZZOURO/zf eI1GdORCGG1Km/PZSlgU1irPQARsVu+dnR/0WUDOOBXOPqw44F7W6bzjFg0ln6npUlM+ 8qaxxRlFp1/s8xmDSPOrIIjI+b2HWf5Sc3dPUqV6CSmY1gSN1k58w+DMl70dGzkpRsVe clotEPPj05AfEQaUZu1OguTF8hqQvW0cij8AzgYfx5jhrR35rtF1lTP4ubB4zssnPkl8 mzNuUkxY0NlB+SWbvuTN/y8s1kd7OiXAftvpalANU2bogxSTeNlAoP1RFSqKEBj/5Wne BnwQ== X-Gm-Message-State: AC+VfDx0d7wy4oU2gSud1JB7b6dKN8DWuQTs4IwWmhtyIdyL8GL5md+L BOSrEL6VB1kYsEgu2ZTr3NLua0YKYm6Vbk/EMYQ= X-Google-Smtp-Source: ACHHUZ4dI9u1nV2Xr7mYFRW7yNHE7EiZGXZnzshlQZKiGoKZwtlMJeNYNgsAhlh0aQgcb+o4wVB/bd4jw+w6jShqD0U= X-Received: by 2002:a17:902:b404:b0:1ac:7ea7:6ccd with SMTP id x4-20020a170902b40400b001ac7ea76ccdmr8948140plr.34.1684757377843; Mon, 22 May 2023 05:09:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 22 May 2023 14:09:26 +0200 Message-ID: To: Dan Ackroyd Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , PHP internals Content-Type: multipart/alternative; boundary="0000000000000a09bd05fc472579" Subject: Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override]) From: ocramius@gmail.com (Marco Pivetta) --0000000000000a09bd05fc472579 Content-Type: text/plain; charset="UTF-8" Amazing wording Dan: great way to drive people away. YIKES. Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/ On Mon, 22 May 2023 at 13:49, Dan Ackroyd wrote: > On Thu, 18 May 2023 at 09:12, Marco Pivetta wrote: > > > > I am not sure this RFC is really relevant... Would it perhaps > > make sense to have this in userland first, in phpstan or psalm > > plugins, to see if there is interest? > > The RFC lists other languages where an equivalent is available, and we > can see that it appears quite popular: > > > https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why > https://github.com/microsoft/TypeScript/issues/2000 > > In those languages, it is a recommended "defensive programming" > (https://ocramius.github.io/extremely-defensive-php/#/23) technique, > that protects against the types of mistakes that are listed in the > RFC. > > 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. > > But if that's the case, there's no use trying to persuade them. > > All you can do is point out that habit of not liking things that they > haven't yet used/invented themselves, and hope that other people don't > spend too much time arguing with someone who has a pattern of being > unreasonable. > > cheers > Dan > Ack > --0000000000000a09bd05fc472579--