Hack is an actively used programming language created in 2014.

5Years Old 6,776Users 37Jobs

Example code from the Hello World Collection:

<?hh
// Hello world in Hack
echo 'Hello World';

Example code from Linguist:

<?hh // strict
/**
 * Copyright (c) 2014, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 */

function startup(): void {
  setup_errors();
}

Example code from Wikipedia:

<?hh
// Hack functions are annotated with types.
function negate(bool $x): bool {
    return !$x;
}
Edit

Last updated February 11th, 2019