Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add keyword formals to functions #54

Open
dedbox opened this issue Apr 29, 2019 · 1 comment
Open

add keyword formals to functions #54

dedbox opened this issue Apr 29, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@dedbox
Copy link
Owner

dedbox commented Apr 29, 2019

Does this make any sense?

@dedbox dedbox added the enhancement New feature or request label Apr 29, 2019
@dedbox dedbox changed the title add keyword formals to functions add keyword formals to functions? Apr 29, 2019
@dedbox
Copy link
Owner Author

dedbox commented Jun 24, 2019

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.

@dedbox dedbox changed the title add keyword formals to functions? add keyword formals to functions Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant