racket-algebraic
racket-algebraic copied to clipboard
add keyword formals to functions
Does this make any sense?
For functions, this does make sense. In forms like these:
(φ #:k k (add1 k))
(φ* (a #:b b) (+ a b))
(φ* (a #:b [b 0]) (+ a b))
As long as the keyword is not a pattern directive, a keyword in a pattern should always follow a pattern or a pattern+default -value.