HACK CodeGen is Now Open Source
“Being able to generate code through automated code generation allows [developers] to increase the level of abstraction by making frameworks that are declarative and that are translated into high-quality Hack code.”
“We’ve been using Hack Codegen at Facebook for a while. After seeing so much internal success, we open-sourced this library so that more people could take advantage of it.”
Code That Writes Code
- Hack_builder to deal with the concatenation
- New lines
- Indentation
- Braces
- Hack keywords
- Collections
- Signed files to re-generate code automatically when a schema is changed