tht is an actively used programming language created in 2017.

2Years Old 109Users 0Jobs
  • tht ranks in the top 50% of languages
  • the tht website
  • tht on github
  • tht first appeared in 2017
  • I have 21 facts about tht. what would you like to know? email me and let me know how I can help.

Example code from the web:

// Familiar variable and List syntax.
$colors = ['red', 'blue', 'green'];
// New JSON-style syntax for Maps
$colorHex = {
    red:   '#FF0000',
    green: '#00FF00',
    blue:  '#0000FF',
};
// Built-in types have methods using
// the mainstream 'dot' syntax.
$colors.push('purple');
// Extra parens aren't needed.
if $colors.length() > 3 {
    $colors.pop();
}
// The standard library is organized
// into modules.
Response.sendPage({
    title: 'Colors',
    body: bodyHtml($colors),
});
// Template Functions let you organize
// your output (views) however you like.
// (e.g. by component, module, file, etc.)
template bodyHtml($colors) {
    <h1>Colors</>
    <ul>
    -- foreach $colors as $c {
        <li>{{ $c.toUpperCaseFirst() }}</>
    -- }
    </>
}

Last updated December 4th, 2019

Edit tht