> On 19 Sep 2023, at 01:00, Niels Dossche
>
> Cheers
> Niels
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: https://www.php.net/unsub.php
(Resending with history removed due to apparent size limit)
Hi Niels,
Obviously, a method with different sign
On 9/18/2023 3:36 PM, Larry Garfield wrote:
I can see where you're going with this, but as others have noted I don't think
it's really the right way to go about it.
If the property hooks RFC passes (we're stalled a bit trying to put together
benchmarks, sorry), that will solve this use case in
On Mon, Sep 18, 2023 at 8:18 PM Shailesh Humbad
wrote:
>
> Hello,
>
> I'm gauging interest on a proposed change to the short echo tag "
> CURRENTLY:
> The short echo tag "" is equivalent to "",
> which allows for beautiful MVC views like this:
>
>
> title ?>
> body ?>
>
>
> INSTEAD:
> Change the
On Mon, Sep 18, 2023, at 6:18 PM, Shailesh Humbad wrote:
> Hello,
>
> I'm gauging interest on a proposed change to the short echo tag "
> CURRENTLY:
> The short echo tag "" is equivalent to "",
> which allows for beautiful MVC views like this:
>
>
> title ?>
> body ?>
>
>
> INSTEAD:
> Change the
I think it's a non-starter because it would change how the existing
code is interpreted.
E.g. currently
```
```
outputs `rand`, but with your proposal it would invoke `rand()` and
output its result.
On Mon, Sep 18, 2023 at 8:19 PM Shailesh Humbad
wrote:
>
> Hello,
>
> I'm gauging interest on
I think a big part of your problem is misusing PHP constructs. Why are
you adding a function as a property? Of course the engine sees it as a
method call, you can't even use a callable as the typehint for a
property. If the 'body' function is separate from each instance, why not
make it a stati
On 9/18/2023 2:40 PM, Dusk wrote:
Surely this can already be accomplished unambiguously using syntax
like `` or `title)() ?>` ?
In any case, this seems like a non-starter, as it would substantially change
the behavior of some existing code, e.g. when echoing objects which implement
both __invo
On Sep 18, 2023, at 11:18, Shailesh Humbad wrote:
> INSTEAD:
> Change the short echo tag "" to be equivalent to " is_callable($x) ? $x() : echo $x; ?>", which allows view model properties to
> be defined as closures.
Surely this can already be accomplished unambiguously using syntax like `` or `
Hello,
I'm gauging interest on a proposed change to the short echo tag "The short echo tag "" is equivalent to "",
which allows for beautiful MVC views like this:
title ?>
body ?>
INSTEAD:
Change the short echo tag "" to be equivalent to "is_callable($x) ? $x() : echo $x; ?>", which allows
Hi Stephen
On 18/09/2023 08:46, Stephen Reay wrote:
>
>
>> On 17 Sep 2023, at 18:28, Niels Dossche wrote:
>>
>> Hi Alexandru
>>
>> On 9/17/23 11:59, Alexandru Pătrănescu wrote:
>>> On Sat, Sep 16, 2023, 02:17 Niels Dossche wrote:
>>>
We'll add a common abstract base class DOM\Documen
On Sat, Sep 16, 2023 at 12:46 PM Hans Henrik Bergan
wrote:
> I think the submodule approach is fine, but maybe it should be moved from
> Dmitry's gh to php-src gh, or maybe it's own dedicated group, to reduce the
> bus factor (how much work needs to be done if Dmitry is hit by a bus~)
>
``git su
On Sat, Sep 16, 2023 at 1:22 AM Tim Düsterhus wrote:
> Hi
>
> On 9/15/23 17:50, Ben Ramsey wrote:
> > Additionally, despite the use of a Git submodule complicating things for
> > "everyone else," it provides a clear dependency and development
> > boundary, avoiding situations where the php-src ve
12 matches
Mail list logo