随笔分类 -  Facebook Hack

New lanaguage.
摘要:SummaryHack provides the following, non-exhaustive list of features:Ability to annotate function and method return types.Ability to annotate the type of member variables.Protection against common unsafe coding patterns (e.g. sketchy null checks).Type-safe collections (Vector,Map,Set).A tool to check 阅读全文
posted @ 2014-03-24 15:13 Mr 88 编辑
摘要:Hack BackgroundFacebook was initially built with PHP. Parameters and return types were specified in comments. Parsers could use this to create documentation. But type-checking was non existent.";}In 2009, a PHP compiler called HipHop was released. In 2010, minor changes to the PHP language were 阅读全文
posted @ 2014-03-24 15:00 Mr 88 编辑
摘要:What is Hack?¶Hack is a language for HHVM that interopates seamlessly with PHP. The barrier to entry for Hack is low. To get started, all that is needed is to generally understand the features that Hack provides andhow to call the Hack type checker(hh_clientinvokes the type checker at the comma 阅读全文
posted @ 2014-03-24 14:35 Mr 88 编辑
摘要:Hack is a language for HHVM that interopates seamlessly with PHP. HHVM supports both Hack and PHP; code can be run on HHVM in either language or even a mixture of both. 阅读全文
posted @ 2014-03-24 14:30 Mr 88 编辑
摘要:Facebook Hack 语言 简介 阅读全文
posted @ 2014-03-21 21:54 Mr 88 编辑