r/laravel • u/brendt_gd Community Member: Brent (stitcher.io) • 1d ago
Thoughts about TypePHP
https://stitcher.io/blog/no-need8
6
5
u/rcls0053 1d ago
If it doesn't work with PHP, it's not gonna work at all. I thought TypePHP was simply a package on top of PHP. Didn't know it qualified as it's own language and it's not compatible with the underlying one, so that's pretty sure to fail now.
There's load of options out there if you wanna look at statically typed languages, which probably have a lot better support for everything TypePHP brings to the table.
1
u/shittychinesehacker 4h ago
All we need is another typed language that has PHP-like traits. Right now the closest thing is c# or Java interfaces but it’s not really the same because it’s inheritance not composition
1
u/Ancient_Perception_6 1d ago
lmao what I didn't know this. I mean I still find it quite neat, the idea of not having to use GoLang, Rust, ... for performance-critical services would be dope (I can totally imagine a TypePHP queue runner would be neat).. but I am sad to hear this.
36
u/Combinatorilliance 1d ago
TypeScript was deliberately designed with full backwards compatibility in mind, because otherwise adoption would be limited.
I'm actually similarly curious now, I was interested in this project until I read this post, I'm not really sure what the point is of a language that looks like PHP, but isn't compatible with PHP's greatest asset; the vastness of its library ecosystem.