On Fri, Oct 26, 2018 at 3:09 PM Kalle Sommer Nielsen wrote:
>
> Den fre. 26. okt. 2018 kl. 18.03 skrev Levi Morrison :
> > In my opinion "ideal" here is that our symbol tables are merged, so
> > referring to "trim" in any context will resolve to at most one symbol,
> > *and* that we also have a sh
Den fre. 26. okt. 2018 kl. 18.03 skrev Levi Morrison :
> In my opinion "ideal" here is that our symbol tables are merged, so
> referring to "trim" in any context will resolve to at most one symbol,
> *and* that we also have a short-closure syntax for times when there
> isn't a *perfect* function to
Sorry for a bunch of replies that simply have lost a lot of context.. I'll
try to summarize it all here:
> I believe the proposal for short lambas (which should get resurrected at
some
> point) would handle this case well enough as well as help a dozen other
> things. To wit:
>
> array_filter($na
My proposal would not work for methods. function::CustomClass::someMethod -
that doesn't look great at all, at least to me.
On Fri, Oct 26, 2018 at 6:08 PM David Rodrigues
wrote:
> Em sex, 26 de out de 2018 às 09:30, Crocodile
> escreveu:
>
> > Hi internals!
> >
> > I have this idea of improvin
Yeah, that was part of the idea, the other being to make these callbacks
semantically different from strings. Its just weird that a string is
callable, isn't it?
On Fri, Oct 26, 2018 at 6:03 PM Arvids Godjuks
wrote:
> пт, 26 окт. 2018 г. в 18:57, Kalle Sommer Nielsen :
>
> > Den fre. 26. okt. 20
That sounds like a plan, and if there is a reasonable support for that,
then we could just have array_filter($arr, trim) - then its way better than
my proposal, and should also work with class methods.
On Fri, Oct 26, 2018 at 6:03 PM Levi Morrison wrote:
> On Fri, Oct 26, 2018 at 9:57 AM Kalle S
I don't think it's quite the same, and although I can agree that short
lambdas look better then normal in this context, I would still prefer
function::trim
On Fri, Oct 26, 2018 at 5:42 PM Larry Garfield
wrote:
> On Friday, October 26, 2018 7:29:46 AM CDT Crocodile wrote:
> > Hi internals!
> >
>
>
> In my opinion "ideal" here is that our symbol tables are merged
>
I would love to see this as well, as this would make the language much more
consistent.
Would this allow to array_filter($names, trim), though?
Em sex, 26 de out de 2018 às 09:30, Crocodile
escreveu:
> Hi internals!
>
> I have this idea of improving the way to specify callbacks for good old PHP
> functions. For instance, I have this piece of code:
>
> ---
> array_filter($names, 'trim')
> ---
>
> The callback funct
пт, 26 окт. 2018 г. в 18:57, Kalle Sommer Nielsen :
> Den fre. 26. okt. 2018 kl. 17.43 skrev Larry Garfield <
> la...@garfieldtech.com>:
> > I believe the proposal for short lambas (which should get resurrected at
> some
> > point) would handle this case well enough as well as help a dozen other
>
On Fri, Oct 26, 2018 at 9:57 AM Kalle Sommer Nielsen wrote:
>
> Den fre. 26. okt. 2018 kl. 17.43 skrev Larry Garfield
> :
> > I believe the proposal for short lambas (which should get resurrected at
> > some
> > point) would handle this case well enough as well as help a dozen other
> > things.
Den fre. 26. okt. 2018 kl. 17.43 skrev Larry Garfield :
> I believe the proposal for short lambas (which should get resurrected at some
> point) would handle this case well enough as well as help a dozen other
> things. To wit:
>
> array_filter($names, |$x| ==> trim($x))
I still fail to see why i
On Friday, October 26, 2018 7:29:46 AM CDT Crocodile wrote:
> Hi internals!
>
> I have this idea of improving the way to specify callbacks for good old PHP
> functions. For instance, I have this piece of code:
>
> ---
> array_filter($names, 'trim')
> ---
>
> The callback
Hi internals!
I have this idea of improving the way to specify callbacks for good old PHP
functions. For instance, I have this piece of code:
---
array_filter($names, 'trim')
---
The callback function name is specified as a string, which makes it
not-so-obvious, although
14 matches
Mail list logo