Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88530 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69743 invoked from network); 28 Sep 2015 16:53:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2015 16:53:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.68 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.213.68 mail-vk0-f68.google.com Received: from [209.85.213.68] ([209.85.213.68:35350] helo=mail-vk0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/D0-62100-D8079065 for ; Mon, 28 Sep 2015 12:53:33 -0400 Received: by vkao3 with SMTP id o3so7674236vka.2 for ; Mon, 28 Sep 2015 09:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wNXrEQ8yl8e7c8ieB2nPY+T8G6fu/ng2gm2702crNkU=; b=ACQguo6WOxvJP6EQwWj+aDHyqTp2F3Y/YaMDRNd8q+bmMtuB1eyuXHub8EIZDTZK+A cHBR5trW2OoU5ja3FwpOJbWRwOLZdNvx67yiNcso3OvdC8lS/d4ZHM8n8eUOUZooxIQ0 9t/HTJiD03adw/uvAjHWb/gsE5ssR/9H4zD0lUdrJs4x0R10vE3ORnsvnSNGaQsT7IJu PMcdDAAP1HyZ3TRitNRsdJHHp9tAJqw+ZRpfSJWrHVzw8rQ6hEn8v+qkbXbzcBkVpPEF wZksDvC2i1UtOyDVbCiVIAnGWeQ84pD7/qqIHscKwYQLU9lYjDr4lrdrhHjl+8bpvWIU 4wVQ== MIME-Version: 1.0 X-Received: by 10.31.132.10 with SMTP id g10mr2279039vkd.40.1443459209834; Mon, 28 Sep 2015 09:53:29 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.31.41.205 with HTTP; Mon, 28 Sep 2015 09:53:29 -0700 (PDT) In-Reply-To: <56095A0C.4070306@cubiclesoft.com> References: <56095A0C.4070306@cubiclesoft.com> Date: Mon, 28 Sep 2015 10:53:29 -0600 X-Google-Sender-Auth: skewIBtjDmfflkEy_OkQMeUtCBE Message-ID: To: Thomas Hruska Cc: "S.A.N" , internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] async/await - is future reserved words in PHP 7.x? From: levim@php.net (Levi Morrison) On Mon, Sep 28, 2015 at 9:17 AM, Thomas Hruska wrote: > On 9/28/2015 1:29 AM, S.A.N wrote: >> >> Are there any future plans for - async/await? >> This need to know now, not to use these words to constants, and class >> names... > > > async/await is the single greatest addition to modern application > development in the last 20 years. Every language needs these features. > Microsoft completely solved the core problems surrounding multithreaded > programming with the concepts behind these two keywords. While not disputing this claim I think PHP should only reserve words when there are somewhat concrete plans for their use. There have been talks and draft RFCs for things like void returns and union types with Foo | null, so reserving `void` and `null` makes sense. Perhaps there is a massive effort somewhere off-list but I am not aware of any plans on implementing async/await in PHP. If you are worried about them becoming reserved then simply do not use `async` and `await` as method, constant or class names. There ends the issue (in my opinion).