Re: [RFC] Optional typehint check for parameters
| From: | Dan Ackroyd | Date: | Tue, 17 Jul 2018 11:18:55 +0000 |
| Subject: | Re: [RFC] Optional typehint check for parameters | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102883@lists.php.net to get a copy of this message | ||
On 15 July 2018 at 20:39, Zeljko Mitic <mitke013@gmail.com> wrote:
> PHP is dynamic language and each typed typehinted parameter has to be
> checked every time.
If you think your code would benefit appreciably from having parameter
types removed, I would strongly recommend looking at
https://preprocess.io/ and similar libraries.
Preprocessing is used in Javascript to quite radically change what is
possible to code in 'Javascript' and has allowed rapid development in
how 'Javascript' can be used. For example JSX is something that would
never have been approved by the ECMA committee.....but because it was
implemented a preprocessing step it never needed to be approved before
could get wide-scale usage.
cheers
Dan
Ack