Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110971 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13629 invoked from network); 13 Jul 2020 11:49:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jul 2020 11:49:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E19241804DB for ; Mon, 13 Jul 2020 03:41:29 -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_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 Jul 2020 03:41:29 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id d21so8619817lfb.6 for ; Mon, 13 Jul 2020 03:41:29 -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 :cc; bh=c1nuL4hTpd53gr8JGHH1lf0mh5XjGSIWQYJH/2IPY6M=; b=tfD5n7CIvH4dmagt2eG7Pr4lPjDZBMcI6IowNaCk2kmcB+D9uO4hgVjTA59EZQfZDZ /iavNFMK5jeNQ6xRGFQkRzfrPRQlMxbXm/35gSY0c7sTdT/hjodNSh0aBYqbSIlfuGxM l5uthg3uefHMmxIJObQIs5g+rDyI+ZZOVvsHgEqfkDGZ7+O3b7CsF/i7N5rkzYFw5Zzo LC69c9vNz6nD7j5nZek3yuo6Z18pLTVMlELtp3l8b69+bUmMaYWsQgaIDcmGRKkk0BmZ 1/4l0TL6RYj0KI8jNHCEC8aNksKG/jFNYSDltkusTL2jNI7YINqA5OU7fIoDQ9u6i/vQ enew== 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:cc; bh=c1nuL4hTpd53gr8JGHH1lf0mh5XjGSIWQYJH/2IPY6M=; b=BN9QdmpBu3vy0jx3WTL3L+HoFa3xytVbRUByB2Y21pwQOgNfHc3GF/rRHNYY+wZ0av 70NPYMNOfI/eK3dZSx2W5eDVO+iUPdLVExwf8FfNkE6d/iv/tn7Gity/EJkSHhOXm8H3 HLfXWMxPdPXr5tNxfWU7w0QdvF4VEGjtOGFvw6YIon75laGvBNA9VT0Has+4UhbO8iqU 8Saj5bf7T8Fy+LGx8IrRRPGBdGkc/KBrBCYuKpLt+oeQlamgmpbpqXsX0IkAj3s4Ud2x QUnX8tBZcv5yFe4HhfQCWpZ9q+csguIz59k2kd6zkPL3RQGDzcV1Hr3Wqtoe8rGhjNNM OI2w== X-Gm-Message-State: AOAM530ITlrqQITecprtAHj/yAia/yTeIA331RaYGjJKYte6cgH3pluK JMztf6b9IKSHGA1XY/k6GVpgQ6XySk1FpO+f+6c= X-Google-Smtp-Source: ABdhPJz0xoRc87Hmzaab0n9C/W/6BozJ4/WGCv66wH3+q6ydZjemL4CXtnvJ4zoKE5cvheNTj2+c9/ry9RzOkyXONSI= X-Received: by 2002:a19:50b:: with SMTP id 11mr38721912lff.154.1594636883064; Mon, 13 Jul 2020 03:41:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 13 Jul 2020 12:41:07 +0200 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000f5fa7105aa5054a6" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Language Constructs Syntax Changes From: nikita.ppv@gmail.com (Nikita Popov) --000000000000f5fa7105aa5054a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 5, 2020 at 9:36 AM Micha=C5=82 Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > Hi internals, > > I realise we're tight to the deadline but from my calculations, > this RFC should fit with 2w discussion and 2w voting before feature freez= e. > > The proposal is to allow two statements to skip parentheses so they don't > look like expressions. > This goes to `declare` and `__halt_compiler`. > Changes have already been implemented and respective PR's are linked to t= he > RFC. > > You can find the RFC at > https://wiki.php.net/rfc/language-constructs-syntax-changes > > There is no BC break! > Proposed changes only allow certain constructs to be considered valid. > I don't think introducing alternative syntax for declare and halt_compiler is a good idea. It introduces two ways to write the same thing, without much benefit I can see. Your stated goal is to make it clearer that these aren't functions, but language constructs. I'm not sure your change helps that much: While "__halt_compiler()" looks like a function call, "__halt_compiler" looks like a constant lookup. For the declare syntax, "declare(a =3D 1)" is alrea= dy illegal syntax for functions, even with the parentheses. Regards, Nikita --000000000000f5fa7105aa5054a6--