Re:Hack: a new programming language for HHVM
by mintplant on Thursday March 20, 2014 @12:35PM
(#7436667)
Say I'm starting out with an entirely new project and want to leave the legacy of dynamic typing behind. Is there a flag available to enforce the use of type signatures, causing Hack to throw a compilation error when they're omitted?
[ Parent
| on HN ]
Yes, "<?hh // strict" at the top of a file will do the trick.