This commit is contained in:
2020-11-25 14:05:42 -07:00
parent 361e2a3c1c
commit 6101ddf4cf
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,6 @@ class FieldForms {
};
}
// TODO &rest, &body and &optional arguments
static function funcOrMethod(formName:String, args:Array<ReaderExp>, convert:ExprConversion):Field {
if (args.length <= 2) {
throw CompileError.fromArgs(args, '$formName has wrong number of args');

View File

@@ -63,7 +63,8 @@ class Helpers {
args: switch (argList.def) {
case ListExp(funcArgs):
[
// TODO optional arguments, default values, rest arguments
// TODO optional arguments, rest arguments
// ^ rest arguments will have to define a macro with the function's name that wraps the rest args in a list when calling it from Kiss
for (funcArg in funcArgs)
{
name: switch (funcArg.def) {