On 25/03/2021 15:05, Deleu wrote:
> * Because it's shorter, people will decide it's the "better" version,
> when they don't actually need any variable capture. An explicit syntax
> like "use(*)" instead makes this a deliberate choice.
Does this mean you agree that people (PHP users) are very likely to
like/enjoy/"think it's the better version", but you still object to it
because people will like the new syntax so much that they will use it
even when they don't need auto-capture?
No, it does not.
I think that people who have no idea how either version of the syntax
works will decide that the keyword "fn" is easier to type than
"function", and not realise the far-reaching effect this can have on
their code.
Regards,
--
Rowan Tommins
[IMSoP]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php