3 ms·
> A superset of PHP that makes PHP cool again. Is this real, or a massive troll attempt? If they’re serious about this, they desperately need better marketing
by mikl 7y ago
> A superset of PHP that makes PHP cool again.
Is this real, or a massive troll attempt?
If they’re serious about this, they desperately need better marketing.
Nothing like calling your own project "cool" to make it appear incredibly uncool.
- djsumdog 7y agoAren't Hiphop and Hack existing supersets of PHP?
- duskwuff 7y agoHiphop -- the Facebook project that compiled a PHP codebase into a monolithic executable, with an intermediate step as C++ -- was more of an alternate implementation than a separate language. But it's dead; Facebook abandoned that approach around 2013, and nobody seems interested in reviving it. Hack started out as a superset of PHP, but it has diverged from the original language. Some of the features it was created to add (like type annotations and lambda functions) have since been added upstream, sometimes with different syntax; some of its other, stranger features (like XHP) are unlikely to ever be adopted upstream. At this point, it's best described as an incompatible fork.
- krapp 7y ago>some of its other, stranger features (like XHP) are unlikely to ever be adopted upstream XHP fixed one of the worst problems that PHP had, being a language intended to generate HTML that didn't recognize XML as a type, and so had no way to validate or contextually escape what it sent. Sure, you can just use a templating framework like Twig to do it in PHP, or compile XHP into it, but you shouldn't have to.