Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120260 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57926 invoked from network); 13 May 2023 13:10:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 May 2023 13:10:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B2E47180382 for ; Sat, 13 May 2023 06:10:41 -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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 ; Sat, 13 May 2023 06:10:41 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-9659e9bbff5so2021184566b.1 for ; Sat, 13 May 2023 06:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20221208.gappssmtp.com; s=20221208; t=1683983440; x=1686575440; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NxG1kaXRp578gTlvpwMzoWP/FXOV9O71pGFTu3cOGD0=; b=OkzhHW15SGWGKxMebKp5vDFqeZ241WRqn3ZJIceyPYAnekBr03W0fyqB5uveeWAV5L lBv//zK6B4XnL+pzi2yo1jyfe5MbKGKDl7wyyOX8FVgw0IyHUIZLOQ2yIIvpnT55SF8P h6/dT3v/lhbaVHdvpgmLtxioGarwSXPn+C5mg5oPxlGFz0YfHKRR7qH6n6M0mybKNtEo UBRMETYhXmGAI6CNo6WclqEMuBIFszXTZfoNsUMIJ+8bcsG0z7ExQk68SXfm3HLJXkXq Oy3ar2XY4zxw+h8+5U0AgJ450YVxrtcfycrEQEYMKo3OTJjWXpSTEN2n7EkXUsfkTQvl aC6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683983440; x=1686575440; h=content-transfer-encoding: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=NxG1kaXRp578gTlvpwMzoWP/FXOV9O71pGFTu3cOGD0=; b=Vw2hJMqVkuSu7kupVseQT9hDnk3ajWdtPAu0LPEK0fdv+FhMuO5wJBR5CIEwxy6/On JzwGNXqCs04maXRMv1l/P7Tr46skh5TWlTSt0jspOACMtxSBw+Z/kJJFRHMwk9EcjTqZ j2Lq8gDew7SfSuXqtX19luBRS/Y/gJ8CREWRtnb3m0+1rF0FbJBwj+KISxX+pnGROGgj tN3cWIqyeeEni9O7MW9AGy4cbhyuh6htFHxoSHpB8d0v+3PyXZKyl2CONQWq067gocvm +H83FwaM9zshxMcFaUnihd8nW0eedOdPDD9tMHEX5nDXBC7pYEg89u9OEZSP4gd+9aWb VmyA== X-Gm-Message-State: AC+VfDyaYEqefeVioVvqm8gLNFJPesYmiw/sP6k1lbzmJ1saFfmiIdaz QRV7yXxWxgC9dIxYf9SmCLGBHexgw3MYD62zmL6Haw== X-Google-Smtp-Source: ACHHUZ5G0b1ogoMYFjVDpFMToBuiveRbDunfS7iYwZFG8BpDhoXnCh1kv09Tpplr9pqN1yL0Dm0PsE86XmHK1AY6/zg= X-Received: by 2002:a17:907:724d:b0:96a:7034:b32d with SMTP id ds13-20020a170907724d00b0096a7034b32dmr8655011ejc.27.1683983439880; Sat, 13 May 2023 06:10:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 13 May 2023 14:10:29 +0100 Message-ID: To: Robert Landers Cc: internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] nameof From: Danack@basereality.com (Dan Ackroyd) On Sat, 13 May 2023 at 08:27, Robert Landers wro= te: > > Hello Internals, > > It is with much trepidation and excitement that I'd like to announce > the `nameof` RFC (https://wiki.php.net/rfc/nameof). Can you provide more details on what the error conditions are? I can see 'non-existent static variable' and 'non-existent variable', are there others? > An exception model was considered, however, the author believes that > it would break the concept of =E2=80=9Cusing nameof wherever a string cou= ld > be used=E2=80=9D and wouldn't be practical for the engine to handle all o= f > those cases. Can you put some detail in there ....I don't understand the problem, or what you mean by it not being practical to 'handle all of those cases' . > each one has its own merits but ultimately will > be left up as a secondary vote: One of the reasons the RFC process has served PHP pretty well is that it forces people to think through the details. I really don't think putting a few options up and hoping that people choose the best one is a good way to design a language; it allows skipping over thinking the details through. And yeah....this is one of the reason doing RFCs is annoying. People are often persnickety over details. cheers Dan Ack