From 5a8684445c2799458aa1d5b8dfd1aa032016e2aa Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 25 Nov 2021 11:09:56 +0200 Subject: Add TODO to readme --- README.md | 12 +++++++++++- samples/sample1.tunk | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 401671e..ffdbdb5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - interpreted - general use -programming language. Tunk is a hobby project written for educational purposes. +programming language. Tunk is a hobby project written for educational purposes, and is inspired by languages such as Elm and Haskell. ## Running Tunk @@ -23,6 +23,16 @@ Run `tunk` REPL: target/release/tunk repl +## TODO + +- 𝛂-conversion to avoid variable name collisions in recursive functions +- A pipeline operator (`argument |> function`) +- A function composition operator (`inner >> outer`) +- tail call recursion optimization +- more primitives: `list`, `tuple` +- list/monad operations `map`, `filter`, `reduce` +- an effect system for handling IO etc. + ## Author Jan Tuomi, <> diff --git a/samples/sample1.tunk b/samples/sample1.tunk index 168421b..26e934d 100644 --- a/samples/sample1.tunk +++ b/samples/sample1.tunk @@ -1,8 +1,9 @@ +rec n = triangle (int.sub n 1); triangle n = int.eq? n 1 1 (int.add n - (triangle (int.sub n 1))); + (rec n)); triangle 500; -- cgit v1.3