3 ms·
Hack does not fix all the weird warts PHP has given us, there are far too many of those :) It does give you some level of sanity (aka types). It also gives you
by amenghra 11y ago
Hack does not fix all the weird warts PHP has given us, there are far too many of those :)
It does give you some level of sanity (aka types). It also gives you tooling (autocompletion, ability to do basic code refactoring, etc.).
- Cthulhu_ 11y agoAnd yet, there's plenty of other, existing, proven languages out there that have had types and those tooling (beyond the 'basic') out there. I'm not looking for a language battle here, but is inventing your own language based on your favorite language to bring common features from other language really such a good idea?
- amenghra 11y agoIf you have an existing codebase in PHP, Hack provides a backwards compatible way to improve the state of things. I have experienced both cases: a conversion of a large codebase from php to Hack and also a conversion from php to rails. Pick the right tool for the right job.
- justthistime_ 11y agoThat sounds like a horrible idea in both cases ...
- joesmo 11y ago> I'm not looking for a language battle here, but is inventing your own language based on your favorite language to bring common features from other language really such a good idea? It worked wonders for C++.