Re: [RFC] Skipping parameters take 2
Rasmus,
> _ is not really an option since it is the standard gettext() shortcut.
Yup, Simon J. pointed that out too so usage of _
was already a discarded
topic.
The top topic now is a possible consistency with the syntax already allowed
when using list. Ex:
list($bar, , $baz) = ['good', 'trash', 'nice'];
Andrea,
> …that probably made no sense. But I think there’s a case to be made that
since list() follows this syntax, we should for function calls to.
But I get it, it would also prevent language syntax from growing just to
have a trivial feature. Apart from the debate about meaning of the
assignment using a blank identifier, it would be beneficial to use the same
syntax even though situations are distinct.
I guess only Stas can decide to give up on default
and use a blank
identifier. Anyway, hope this decision don't affect the voting negatively,
feature is cool.
2015-01-18 0:32 GMT-03:00 Rasmus Lerdorf <[email protected]>:
> On Jan 17, 2015, at 17:52, Marcio Almada <[email protected]> wrote:
>
> >> Cryptic notation is not a PHP way. IMHO.I like original "default"
> proposal and it is good enough.
> >> Regards,
> >
> > When I suggested _
it was more as a feature wandering. I like
> > default
too. The RFC looks good enough as it is now :)
>
> _ is not really an option since it is the standard gettext() shortcut.
>
> Eg.
> http://en.m.wikipedia.org/wiki/Gettext#Programming
> http://php.net/_
>
> -Rasmus
Thread (69 messages)