19 Jui
2011
19 Jui
'11
22:28
When a keyword argument is left unspecified, it is initialized to #f. This can get weird for optional boolean arguments. For example: Example:
(define (my-func #!key bool-arg) (if bool-arg bool-arg "bool-arg unspecified")) (my-func bool-arg: #t) #t (my-func) "bool-arg unset" (my-func bool-arg: #f) "bool-arg unset"
Is there any way to distinguish between keyword arguments that were never set, and keyword arguments that were set to #f?