Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109540 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33200 invoked from network); 5 Apr 2020 14:50:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Apr 2020 14:50:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A378B1804C5 for ; Sun, 5 Apr 2020 06:18:16 -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, 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-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (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 ; Sun, 5 Apr 2020 06:18:16 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id a5so7192144ybo.7 for ; Sun, 05 Apr 2020 06:18:16 -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 :content-transfer-encoding; bh=AXip7XWbeDlupUqmaRjSg1lhfHbas4wTMgfOsskEPrw=; b=uYaHdzsNNEZLUMK6zK5xfY6d1g7w7KZuouQ4Kgj1q5sKMB5bhUCjelfy+dgop2Ifje gOFPyBPbboHvDowwA42xcpE/MkxVBl8OKFfdmYCnh7wk9HWYBXHUOc3copGqDAGxQXHG f7JewbPiRJlOUK8LkwsGAOonu75HNbtrBHHXeGYRvb/Do5KG4NKEmTcBZK2nXTiASAsY +4Q0Lq7vPbuE0OYkB75sq2JWzO8RJnPlOZm/p5BQj4bI0FyciEupg7/u0ElgN+ICLZmF DrHi968vahPuUEa1qTEyG1A05zmHQsQHqYx2tEvefCR18XVEDvQsKsTGJpqzI0ToXNF9 v0EQ== 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:content-transfer-encoding; bh=AXip7XWbeDlupUqmaRjSg1lhfHbas4wTMgfOsskEPrw=; b=JZbYnfxHtvKT03UzkmULHZHcwxrFDrCVE1HUMMDblUC1znMSRWG/mC3jgnaQRJZkqi IyTD1PEGcS4SJniT8dfABffk27CCJj6MoaTq65p+L725dWsd8WFj89W/g3F7HDCQ8VLd 42ruJC03iHfumyShLxvSSanVjB4fCmD1CSzch3SwlxTOA22tbJxijwBMSHapoDr1bQzg EdBHNQYDnk4spIWwQK0Jp3jmrtDGpgPK7WAb1cOazBXXvVFP501Mh+Xf1vPhU9LmqqwU z4oHsJD5raH6J8iaiQ2puzh47qPeatcg78KFx3OBqrpwJX03obUuVI32QiqbOAHcOydW mGHQ== X-Gm-Message-State: AGi0PubjuRsmhAsdChC6opv5zU4HrKZEQ4Nz/Ch0kXrbnZem+3rdrDON coWALwrb/ZJld5wgjQseHkSnQoX19MUWr8juRhLJdw9D X-Google-Smtp-Source: APiQypLHg4JOz5Wq39YcuJ1Uye8I74WzjTBrG6xvnsEmVQ3jPEjjX0OY0/y1tFu6Zy9AFOYThwJzVqnTJ6+Jg4kbOxg= X-Received: by 2002:a25:cf58:: with SMTP id f85mr29753465ybg.109.1586092695361; Sun, 05 Apr 2020 06:18:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 5 Apr 2020 15:18:04 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] throw expression From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nikita > The only thing wrong here is calling this an "exception to the rule" in t= he RFC. This is completely standard and expected behavior given the specifi= ed precedence. It is in the nature of precedence that there will always be = cases where the use of () is required, and this is one of them. I can see how that statement could be confusing. What I meant was this: > This isn't a problem because generally throw should be the last operator = ... > ... > One exception to this rule ... As in, this is the only example I could think of where throw would be used between two other expressions. Not that the precedence behaves differently than in any other case. I'll rephrase that sentence. Regards, Ilija