Le 16/05/2016 à 03:33, Larry Garfield a écrit :

This still sounds awfully complicated to me.  I would far, far prefer
the $$ syntax to special casing function aliases just to dance around
it.  If we had a short-function syntax then requiring a piped function
to have only a single argument would be both reasonable and
typing-efficient.  Baring that, the $$ syntax seems far nicer than
alternate versions of functions with implicit arguments but only in
certain situations.

The question, here, is to determine how serious is the issue of argument ordering in the PHP library. It seems you don't feel it as very serious, as you prefer a $$ placeholder. If you refer to the ML history, you will see that a lot of people, if not most, consider it as the most serious PHP sadness overall. So, what I'm exploring here is the lowest price to pay to get rid of this issue.

The question of function aliases is not so serious because we'll need very few. Almost every functions have only one 'natural' argument to substitute as lhs. I'm not sure I understand what you mean with 'but only in certain situations'.

François


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to