Hack Documentation
Learn
Getting Started
教你如何安装 Hack 来运行你的第一个程序,同时也会介绍一些工具。Source Code Fundamentals
基础语法、命名空间、自动加载。Expressions And Operators
表达式、运算符、关联性和优先级。Statements
简单的语句、代码块和循环。Functions
命名函数、匿名函数以及函数参数。Classes
类、接口和 trait。Types
类型检查器。Built In Types
类型检查器支持的原生数据类型。Generics
Generic types, where constraints, and variance.Asynchronous Operations
Asynchronous functions, await, and the concurrent keyword.Attributes
Attaching metadata to Hack programs, built-in attributes and defining your own.XHP
Safe, composable HTML templating.Silencing Errors
HH_FIXME best practices and error codes.
Built-in API Reference
Full reference docs for all functions, classes, interfaces, and traits in the Hack language.
Standard Library API Reference
Full reference docs for all functions, classes, interfaces, and traits in the Hack Standard Library.