Hack
HHVM
报告 bug 或提出建议。
搜索文档
Getting Started
Getting Started
Tools
Starting A Real Project
The Standard Library
Input And Output
Source Code Fundamentals
Introduction
Program Structure
Comments
Names
Keywords
Literals
Operators And Punctuators
Scope
Constants
Variables
Script Inclusion
Namespaces
Expressions And Operators
Introduction
Some Basics
Operator Precedence
Echo
Exit
Banning Lval As An Expression
Invariant
List
Async Blocks
New
Array Creation
Subscript
Member Selection
Scope Resolution
Incrementing And Decrementing
Error Control
Casting
Await
Type Assertions
Arithmetic
String Concatenation
Bitwise Operators
Logical Operators
Comparisons
Equality
Ternary
Coalesce
Pipe
Assignment
Yield
Statements
Introduction
Compound Statements
Expression Statements
If
Switch
While
Do
For
Foreach
Continue
Break
Return
Throw
Using
Try
Use
Functions
Introduction
Anonymous Functions
Type Enforcement
Format Strings
Inout Parameters
Classes
Introduction
Methods
Properties
Inheritance
Constructors
Constants
Type Constants
Object Disposal
Implementing An Interface
Using A Trait
Trait And Interface Requirements
Type Constants Revisited
Methods With Predefined Semantics
Types
Introduction
Soft Types
Generic Types
Anonymous Function Objects
Nullable Types
Type Conversion
Type Aliases
Supertypes And Subtypes
Type Refinement
Type Inferencing
Built In Types
Introduction
Bool
Int
Float
Num
String
Void
Arrays
Tuples
Shapes
Arraykey
Enumerated Types
This
Classname
Darray Varray Runtime Options
Resources
Null
Nonnull
Mixed
Dynamic
Noreturn
Nothing
Generics
Introduction
Some Basics
Type Parameters
Type Constraints
Variance
Type Erasure
Reified Generics
Reified Generics Migration
Asynchronous Operations
Introduction
Some Basics
Awaitables
Exceptions
Blocks
Concurrent
Await As An Expression
Utility Functions
Extensions
Generators
Async Vs. Awaitable
Guidelines
Examples
Further Resources
Await As An Expression Spec
Attributes
Introduction
Some Basics
Attribute Specification
Predefined Attributes
XHP
Introduction
Some Basics
Basic Usage
Interfaces
Methods
Extending
Migration
Guidelines
Further Resources
Silencing Errors
Introduction
Error Codes
Documentation
hack
Learn
Generics
Introduction
Generics: Introduction
Topics covered in this section
Getting started
Contravariance
Covariance
Reified generics
Type constraints
Type erasure
Type parameters
Variance
Nothing
Built In Types:
Some Basics
Generics: