Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110513 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80473 invoked from network); 15 Jun 2020 15:27:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2020 15:27:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6C1451804CE for ; Mon, 15 Jun 2020 07:12:40 -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=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_SBL,URIBL_SBL_A 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-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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, 15 Jun 2020 07:12:39 -0700 (PDT) Received: by mail-il1-f172.google.com with SMTP id p5so15390928ile.6 for ; Mon, 15 Jun 2020 07:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NtXWt9PrTNjArllhtil4UXd1ZC6xH+a5uZ/4Swr9Y2s=; b=MtPS9G1BX3Bquf0sTf2wmVpjwnaFmLi/it7Mc5yHcrCfFUDPSdhkVSvkAE4e4WBl6Y iZ5NLj6omL+BMDpSOp3FY3itI5Qs5RyrxNvwfmxOwmnc33e5hw1LYLQ18wHhgkM1m9G0 Ms4ISinHdqgiLyK1U8ZnV9ZLit5JfhG8AFVfc= 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=NtXWt9PrTNjArllhtil4UXd1ZC6xH+a5uZ/4Swr9Y2s=; b=a/Ymf8Zw8qge9093c+RzH158CQhzn46EKuECbBSlCz+tZp7D7/uqlMxolpsPHOImaD zywGppPo0pOrjx5Io2j2LfXQo/GThlPCwwWJNx6z9ggqp6kRNFvlJFiRWBcAZzub8+ts HL7j+o4jlXoVWvVJmgsY8EmJXad5ib8BvTT6WULdXR/jEQWYF8QavHgsz7Me0XaWQzh8 MCIBoGQXrU2CXinQ8I4pu9Z6S4kxHTkOH0hxR+aTzEmLfNPM7sUUymAIaKz+0AJoA2U8 0b8+bT2hUQjoyGWLInWBYKKDCJotBI3zuPfkvfEGl1EwxjP52JExQrQhRDF0KGUorBHw D0pw== X-Gm-Message-State: AOAM53052qcP6KFrRwSQvoiRQCkDi1sfyXASq6bBQhv9uS1szFd9YyYn 7DTpFFglx/1/E3ttC/31q9YPS+GrJSZ2IbUg54tRZg== X-Google-Smtp-Source: ABdhPJz3r0hETkwtY5m97xfQIP5rIrUTYfZhnsYuj0zs0ykfko26COpZBwhdq4owxjWPP8pVYTh6qe+azBfAhDfKWWQ= X-Received: by 2002:a92:cb43:: with SMTP id f3mr28010616ilq.112.1592230357226; Mon, 15 Jun 2020 07:12:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Mon, 15 Jun 2020 08:12:26 -0600 Message-ID: To: Marco Pivetta Cc: Ilija Tovilo , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8 From: internals@lists.php.net ("Levi Morrison via internals") On Mon, Jun 15, 2020 at 2:17 AM Marco Pivetta wrote: > > Hey Ilija, > > On Sat, Jun 13, 2020 at 9:10 PM Ilija Tovilo wrote: > > > Hi internals > > > > I created a new RFC for reserving keywords we might need in PHP 8.x > > versions. > > https://wiki.php.net/rfc/reserve_keywords_in_php_8 > > > > Let me know if there's something you'd like to work on that will > > require a keyword and I will add it to the list. The keywords will > > most likely be voted on separately. > > > > This seems messy now, mostly because the `enum` symbol is very much in use > in very stable packages: > > * https://packagist.org/packages/marc-mabe/php-enum/stats > * https://packagist.org/packages/myclabs/php-enum/stats > > Greets, > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ How viable would be a compilation warning when a `T_STRING` is `enum`? I'm sure for the most part authors would much rather have enums in core than to maintain their own, though I haven't looked at implementations to see how "exotic" they are. If it's a warning then we can manage until it's implemented and the software can continue working but nobody will have to invest more time into it.