-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coerce arguments to functions, in some cases (#144)
* Coerce arguments to functions, in some cases This is a bit of a sneaky change, but it is useful to convert arguments to lists in some cases: * If a function is defined that accepts a single parameter. * BUT multiple arguments are actually passed to that function * THEN * If the parameter is not variadic * And the parameter is untyped, or typed as a list * REPLACE THE Arguments with a list containing their entries. This means: (set! and (fn* (xs:list) ... ) Can then be called: (and true false true true ..) Because the arguments will be rewritten as if they were called: (and (list true false true true ..) This is general purpose, and applies to all functions. I _think_ it's a good idea, but we'll see. * Updated location of the buildvcs flag
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters