A cool cabin

This commit is contained in:
2021-10-18 12:39:53 -04:00
parent 2f4c412347
commit 6d1328f5b8
11 changed files with 131 additions and 3 deletions

View File

@@ -306,8 +306,9 @@ class SpecialForms {
};
map["try"] = (wholeExp:ReaderExp, args:Array<ReaderExp>, k:KissState) -> {
wholeExp.checkNumArgs(1, null, "(try [thing] [catches...])");
wholeExp.checkNumArgs(1, null, "(try <thing> <catches...>)");
var tryKissExp = args[0];
var catchKissExps = args.slice(1);
ETry(k.convert(tryKissExp), [
for (catchKissExp in catchKissExps) {