formatting

This commit is contained in:
2021-05-22 12:12:12 -06:00
parent f48318bee4
commit d826755507
2 changed files with 8 additions and 1 deletions

View File

@@ -279,7 +279,8 @@ class SpecialForms {
case Symbol(type): type; case Symbol(type): type;
default: throw CompileError.fromExp(args[0], '$whichArg argument to (the... ) should be a valid type'); default: throw CompileError.fromExp(args[0], '$whichArg argument to (the... ) should be a valid type');
}; };
if (pkg.length > 0) type = pkg + "." + type; if (pkg.length > 0)
type = pkg + "." + type;
ECheckType(k.convert(args[1]), Helpers.parseComplexType(type, args[0])).withMacroPosOf(wholeExp); ECheckType(k.convert(args[1]), Helpers.parseComplexType(type, args[0])).withMacroPosOf(wholeExp);
}; };

View File

@@ -230,3 +230,9 @@
string Std.string string Std.string
random Std.random random Std.random
int Std.int))) int Std.int)))
(defmacro withValueOrInputBox [v &rest body]
`(if ,v
{,@body}
(awaitLet [,v (inputBox)]
,@body)))