Re: [RFC] Union Types

From: Date: Thu, 14 Apr 2016 11:40:06 +0000
Subject: Re: [RFC] Union Types
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-92297@lists.php.net to get a copy of this message
Derick Rethans <derick@php.net> 於 2016年4月14日 星期四寫道: > On Thu, 14 Apr 2016, Lin Yo-An wrote: > > > On Thu, Apr 14, 2016 at 5:12 PM, Derick Rethans <derick@php.net > <javascript:;>> wrote: > > I think type conversion shouldn't be done internally, implicitly. > > > > Implicit conversion leads more confusion in the language. when you > > pass variables, you have to remember these conversion rules. > > Sorry, we already have this with our weak scalar types. You can't make > union types not work with that. > Does Hack support weak type conversion? -- Sent from Gmail Mobile

« previous php.internals (#92297) next »