3 ms·
Well, Facebook also created their own hacked up version of PHP (called Hack) that's presumably easier to migrate PHP to. Hack is actually surprisingly pleasant
by eru 2y ago
Well, Facebook also created their own hacked up version of PHP (called Hack) that's presumably easier to migrate PHP to.
Hack is actually surprisingly pleasant, basically about the best language they could have made starting from PHP. (I know, that's damning with faint praise. But I actually mean this unironically. It has TypeScript vibes.)
- krapp 2y agoI was excited about Hack when it came out. Unfortunately PHP took just enough from it to kill it. I gave up on it once Composer stopped supporting it, after backwards compatibility with PHP no longer became a goal. IMHO Hack's best feature was native support for XHP... which (also unfortunately) isn't something PHP decided to take.
- eru 2y agoI only used Hack when I was very briefly working for Facebook. (And I used PHP once before nearly 20 years ago by now for some web site I had 'inherited', back when PHP was truly an awful language)
- Twirrim 2y agoHack really gave PHP/Zend the kick up the arse that it seemed to need.
- eru 2y agoI guess like Scala (et al) and Java? C++ also seems to be learning things from Rust these days.
- IshKebab 2y agoYes I mentioned that.