
11/11/2014 · Vishnu Iyengar
What this post added
Introduced the Hack Transpiler (h2tp), an experimental tool to transpile Hack code to PHP. This allows projects that have adopted Hack to maintain backward compatibility with the PHP5 engine by generating PHP output alongside hacklib functions and classes. The tool handles type annotation erasure, short lambda expressions, and Hack collections, with specific considerations for reference semantics and boolean contexts. Limitations include the non-support of literal syntax for instance variables in class declarations.