Rest parameter working

This commit is contained in:
2022-08-27 11:59:54 +01:00
parent 85f3dfbf1d
commit 90e5a5d08b
7 changed files with 77 additions and 10 deletions

View File

@@ -21,12 +21,13 @@ DONE: function returns can have specified types
DONE: closures are explicitly supported
DONE: functions are first-class citizens
DONE: functions take a set number of parameters
DONE: functions last argument can be a rest parameter
TODO: functions return a set number of values
TODO: functions last argument can be a rest parameter
TODO: assert needs to kill the whole script
TODO: assert needs to kill the whole script, not just functions
TODO: ternary operator
TODO: Nullish types
TODO: A way to check the type of a variable (typeOf keyword)
TODO: a = b = c = 1; ?
@@ -34,3 +35,5 @@ TODO: are compounds shallow or deep copies?
TODO: Assertion-based test scripts
TODO: standard library
TODO: external runner library
TODO: document how it all works
TODO: third output stream, for parser/compiler/interpreter errors