logo
Hack - Interview Questions and Answers
What is Hack Programming Language?
Hack is a programming language for the HipHop Virtual Machine (HHVM), Hack was introduced on March 20, 2014 created by Facebook as a dialect of PHP. The language implementation is open-source, licensed under the MIT License.

Hack allows programmers to use both dynamic typing and static typing. This kind of a type system is called gradual typing, which is also implemented in other programming languages such as ActionScript. Hack's type system allows types to be specified for function arguments, function return values, and class properties; however, types of local variables are always inferred and cannot be specified.

Hack was introduced on March 20, 2014. Before the announcement of the new programming language, Facebook had already implemented the code and tested it on a large portion of its web site.