I'd also like to point out that, with relatively small changes, PHP could
likely be taught to react to attributes at compile time. That would make it
possible to implement AOP, actors, and many other language extensions based
on macros.

Essentially, what you're seeing here is macros in their purest form the
same concept that exists in Rust today.

чт, 16 июл. 2026 г. в 22:51, Morgan <[email protected]>:

> On 2026-07-15 11:36, Liam Hammett wrote:
> >
> > It proposes a native syntax for HTML fragments as first-class PHP
> expressions,
> > akin to how the frontend community has adopted JSX, with composition and
> > escape-by-default output:
> >
> Heh, just today by coincidence I was pointed toward https://jsx.lol/ -
> which, despite the name is more about React in general.
>
> I'm more partial to Edmond Dantes's suggestion of providing parser hooks
> so that different markup expression syntaxes can be added via extension,
> rather than locking in one that happened to be popular at one time.
>

Reply via email to