Re:PeachPie Compiler: Compile and run PHP on top of .NET run...
by okeuro49 on Saturday October 12, 2024 @08:13AM
(#41818535)
The defining feature of PHP isn't really string templating, but its shared-nothing architecture.
https://slack.engineering/taking-php-seriously/
I would consider poor man's PHP as something to reimplement that architecture, rather than any particular language feature.
Re:PeachPie Compiler: Compile and run PHP on top of .NET run...
by pjmlp on Saturday October 12, 2024 @09:18AM
(#41818850)
I fail to see why anyone sane would use this way over Razor files.
Re:PeachPie Compiler: Compile and run PHP on top of .NET run...
by bob1029 on Saturday October 12, 2024 @09:40AM
(#41818998)
I use it to avoid the gauntlet of AspNetCore dependencies and weird editor bs around cshtml files.
https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
And, it's getting better over time:
https://github.com/dotnet/csharplang/issues/4935
This is essentially how I respond to web requests in my codebases right now: