Writing code that writes code with Hack Codegen
code.facebook.com
Writing code that writes code with Hack Codegen
1–5 of 5 posts
Re: Writing code that writes code with Hack Codegen
#2Because Hack isn't PHP all of the foundations are gone, consider this text from the JetBrains PhpStorm team:
"We’d have to provide full support for a complete new language, which entails implementing a parser, type checker, navigation, completion, inspections, and so on. No part of PHP support that we have now can be reused for Hack, given the fundamental differences between the languages. We’d then have to maintain and enhance it, closely following the evolution of Hacklang."
Until those important issues are resolved, it's unlikely many people will be using these tools. Facebook should, pretty please, consider outsourcing the things in the list above (parser, type checker, inspections anyhow). Unfortunately I can't justify pigeonholing my editor selection for Hack development. Anxiously awaiting some form of resolution.
[1] http://blog.jetbrains.com/phpstorm/2015/06/hack-language-sup...
Re: Writing code that writes code with Hack Codegen
#3I would really love to use Hack, but I want to use it in the editor of my choice, not the editor of Facebook's choice. Because Hack isn't PHP all of the foundations are gone, consider this text from the JetBrains PhpStorm team: "We’d have to provide full support for a complete new language, which entails implementing a parser, type checker, navigation, completion, inspections, and so on. No part of PHP support that w…
Other editor plugins leverage the `hh_*` binaries to achieve this. In fact, the way they are written are specifically for that use-case, as far as I remember.
Re: Writing code that writes code with Hack Codegen
#4Wouldn't it have been more effective and easier to debug to put those features in the Hack language (which is a pretty recent invention as languages are concerned) itself without resorting to external tools?
Re: Writing code that writes code with Hack Codegen
#5I would really love to use Hack, but I want to use it in the editor of my choice, not the editor of Facebook's choice. Because Hack isn't PHP all of the foundations are gone, consider this text from the JetBrains PhpStorm team: "We’d have to provide full support for a complete new language, which entails implementing a parser, type checker, navigation, completion, inspections, and so on. No part of PHP support that w…