Re: [RFC] Return Type Declarations

From: Date: Thu, 08 May 2014 00:45:46 +0000
Subject: Re: [RFC] Return Type Declarations
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-74044@lists.php.net to get a copy of this message
Oh, so HACK picked this syntax. agree for avoiding compatibility. On Thu, May 8, 2014 at 6:35 AM, Larry Garfield <larry@garfieldtech.com>wrote: > On 5/7/14, 5:30 PM, Levi Morrison wrote: > >> On Wed, May 7, 2014 at 11:02 AM, Lin Yo-An <cornelius.howl@gmail.com> >> wrote: >> >> Hi, >>> >>> Why using an additional ":" symbol for the return type? what about >>> considering this: >>> >> > *snip* > > > In the case of the colon I value being compatible with Hack more than the >> small gain of omitting the colon. >> > > ^^ What Levi said. Colon vs. no colon is an easily bikesheddable > discussion, and I'm happy to answer that with "follow HACK's lead to avoid > confusion/incompatibility later". > > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best Regards, Yo-An Lin

« previous php.internals (#74044) next »