Re: [RFC] [Discussion] Native Markup Expressions

From: Date: Thu, 16 Jul 2026 20:05:06 +0000
Subject: Re: [RFC] [Discussion] Native Markup Expressions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-131983@lists.php.net to get a copy of this message
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 <weedpacket@varteg.nz>: > 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. >

« previous php.internals (#131983) next »