RE: [PHP-DEV] [VOTE] Scalar Type Hints
| From: | Zeev Suraski | Date: | Wed, 11 Feb 2015 23:08:26 +0000 |
| Subject: | RE: [PHP-DEV] [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82500@lists.php.net to get a copy of this message | ||
I said numerous times that I think that v0.1 of Andrea’s RFC was right on
the mark. I’d vote in its favor in a heartbeat. It gives the exact same
value from an API author’s point of view. It gives the exact same value in
terms of potential performance improvements/JITting/compilation insight.
But unlike the current RFC, v0.1 doesn’t introduce an IMHO alien concept
into a language that considered dynamic typing to be a core principle since
its birth.
Zeev
*From:* guilhermeblanco@gmail.com [mailto:guilhermeblanco@gmail.com]
*Sent:* Thursday, February 12, 2015 12:46 AM
*To:* Andrea Faulds
*Cc:* Zeev Suraski; Rasmus Lerdorf; PHP Internals
*Subject:* Re: [PHP-DEV] [VOTE] Scalar Type Hints
Hi all,
@Zeev and @Rasmus:
Seriously, you both mentioned that consider the idea of scalar type hint,
but I've never seen which idea would you consider.
Andrea built a very flexible way to operate and even though I don't fully
agree either, it's the best so far. This approach does have headaches, but
would you ever consider a strict or weak only approach?