Version 1 of Til-lang

Updated 2021-05-16 00:25:16 by cleberz

Til

https://til-lang.github.io/til/

Discussion on Hacker News

Til is a command language whose syntax is inspired by Tcl and aims to be easy-to-use and easy-to-extend.

The major differences with Tcl would be:

  • "SubLists" ({} enclosed code) are parsed normally - their content is considered to be "SubPrograms";
  • It implements "SimpleLists" as () enclosed items: they are not supposed to be a list of commands, but simply a list of items;
  • It implements "Extractions" as <> enclosed statements, like <$lista 1> for retrieving the first element of a list;
  • It tries to be as fast as possible without byte-compiling.

Avoid "pure Til"

Users are encouraged to implement new things as modules (in D) instead of trying to create "pure Til" implementations. The language itself does not implement import for Til scripts, relying on include so that the program itself can be seen as one-file-only.