logoalt Hacker News

maxloh • today at 7:58 AM • 1 reply • view on HN

Here's a beginner tutorial for the language: https://docs.toit.io/language/toitversus

Nice syntax. It looks like how we'd design programming if C had never existed.

  add a/int b/int -> int:
    return a + b
  
  main:
    print (add 2 3)  // Prints 5.

Replies

pjmlp • today at 2:26 PM

There are systems programming languages since JOVIAL in 1958, enough of them to chose from if C had never existed, and what syntaxes would be favoured instead.

➕ show 1 reply