Hack (programming language)
Programming language / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Hack (programming language)?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
Not to be confused with Haxe.
Hack is a programming language for the HipHop Virtual Machine (HHVM), created by Meta (formerly Facebook) as a dialect of PHP. The language implementation is open-source, licensed under the MIT License.[2][3][4]
Quick Facts Designed by, Developer ...
Designed by | Julien Verlaguet, Alok Menghrajani, Drew Paroski, and others[1] |
---|---|
Developer | Meta Platforms |
First appeared | 2014 |
Stable release | |
Typing discipline | Static, dynamic, weak, gradual |
OS | Cross-platform |
License | MIT License[2] |
Website | hacklang |
Influenced by | |
PHP, OCaml, Java, C#, Scala, Haskell |
Close
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.[5] 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.[3][6]