Re: [RFC] Nullable Types
| From: | Dmitry Stogov | Date: | Mon, 18 Apr 2016 08:59:22 +0000 |
| Subject: | Re: [RFC] Nullable Types | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92401@lists.php.net to get a copy of this message | ||
The grammar is taken from HHVM.
Using any other would make more mess.
Thanks. Dmitry.
________________________________________
From: Tom Worster <fsb@thefsb.org>
Sent: Saturday, April 16, 2016 04:54
To: Dmitry Stogov; internals
Subject: Re: [PHP-DEV] [RFC] Nullable Types
On 4/15/16 1:58 PM, Dmitry Stogov wrote:
> A week ago, I actually wrote my own RFC
> https://wiki.php.net/rfc/nullable_return_types
You proposed the ?Something grammar. With ?: and ?? appearing in recent
PHP and proposals for ??= if not ?:= and now this, I feel we're heading
to regex hell :p
Tom
> but didn't push it for discussion in favor of Levi's nullable_type RFC (they are
> almost the same).