Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116638 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93475 invoked from network); 13 Dec 2021 10:28:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Dec 2021 10:28:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3903718053C for ; Mon, 13 Dec 2021 03:30:13 -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=-0.2 required=5.0 tests=BAYES_20,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-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.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 ; Mon, 13 Dec 2021 03:30:12 -0800 (PST) Received: by mail-io1-f53.google.com with SMTP id y16so18071774ioc.8 for ; Mon, 13 Dec 2021 03:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ewrumss1/c2NKE6wIN7lm7uRTJ2PL5had2JIDE/EV04=; b=X+plCE5A8UQTIq+Y8Xi3Gkw4XSLtFVRMjR4Np7UAcwPlIVbklun0q23pMbtnIJ4OjO Q9kIfnRHuEUBdGvhLHsVHT60zgubG+LilOnsx9M8IO48zHXKcy09XENLa7sTEmhf+K51 MvoA1hfbYHt8yo1bZnTUQe23C2/+PHHxx4iIS2nOYjxtIlGlneYQP4GF+S+V4PIqz0bu I8qXi6gaOWZ0NoswWvZX11HP8fX9g1C3qDi4OBurPam8EWtxRxsonqeu1B2KMqwFCFcV Rriue5nr8M5lG5usNWxWQPxb7L/M4mmPbtltx5QCLauSa90ZERoz8AKNh/vh8b9TXmRG HKqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ewrumss1/c2NKE6wIN7lm7uRTJ2PL5had2JIDE/EV04=; b=WTPEdflTieBLrIFpwzpmSLf0ZxbVVGER8QQK0sPuiz2YjuGk1Wb3+WgXH06/On4CO8 Qj/O1gvjVHZlZnK4ZakSBorkSsgx4b9wa1TVq6KyO13QCDGycQ9nVMj/2p1mXZ+Pa59S ++644DleJIaBbuznW2t5AsGFnclFijmS8+GotAXS0wMXfNalM8VJcsAHaU86mLwauqW+ 7GbTsfu1pdxx2eaPoXjNvEyK+yX7X4spr4GVyQQ8YFMQhlplhg2ouejc+/oWTYWvTKbA zMPy8WDThqoSW30NPDQnFquuK7W8XOaZ2kmd2+ft+YXS4PpqvGXBglYve3iuQ6GwdBNM sZdw== X-Gm-Message-State: AOAM530F7ib7u8ya8ne8LEmitsiC1pNaZeRCJFnLz/G81ZO/WWu/tGUb vVtaoK2bLfzfmGLvedh6+UdoljUwHHhcNCau2A4= X-Google-Smtp-Source: ABdhPJwS7kcP3ab3wHomKJP/LXt2Pchpolzl0eu3ljmKUUMll6xRiE+5zfJoFue/KYwirbLEHnwDcD54ChZUKY/XHVw= X-Received: by 2002:a05:6638:3183:: with SMTP id z3mr32320797jak.108.1639395012108; Mon, 13 Dec 2021 03:30:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 13 Dec 2021 12:29:45 +0100 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?= Cc: Oliver Nybroe , PHP internals Content-Type: multipart/alternative; boundary="00000000000057e7ba05d30565bb" Subject: Re: [PHP-DEV] [RFC] !instanceof operator - reaction measuremen From: kjarli@gmail.com (Lynn) --00000000000057e7ba05d30565bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 13, 2021 at 12:19 PM Micha=C5=82 Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > > Why not "not" instead? The "!" in front of "i" in "!implements" is almost > not visible which IMO could get easily ignored unintentionally. > Instead constructs like "$foo not implements stdClass" have higher > visibility and are currently a syntax error. > > Cheers, > Micha=C5=82 Marcin Brzuchalski > Definitely a good idea! I was considering suggesting that as well when writing the implements/extends down, but wasn't sure if that would be doable as it would introduce a new keyword as well if I understand the setup of php correctly. --00000000000057e7ba05d30565bb--