Re: [RFC] Nullable Types

From: Date: Thu, 21 Apr 2016 13:05:24 +0000
Subject: Re: [RFC] Nullable Types
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-92593@lists.php.net to get a copy of this message
Hi Thomas, What is a default return declaration? Is this for branches within the function that do not lead to a return statement? Tom From: Thomas Bley Sent: ‎Wednesday‎, ‎April‎ ‎20‎, ‎2016 ‎12‎:‎53‎ ‎PM To: guilhermeblanco@gmail.com, cornelius.howl@gmail.com, dmitry@zend.com Cc: fsb@thefsb.org, internals@lists.php.net What do you think about default return values? e.g. function foo(): db_result = null { } function canLogin(): bool = false { }

« previous php.internals (#92593) next »