News for hackers. Stuff that matters.
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?
Re:Hack: a new programming language for HHVM by bos on Thursday March 20, 2014 @12:36PM (#7436674)
Yes, "<?hh // strict" at the top of a file will do the trick.
Re:Hack: a new programming language for HHVM by mintplant on Thursday March 20, 2014 @12:37PM (#7436682)
Great! Thanks.