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

Keyword arguments #11

Open
toivoh opened this issue Jan 5, 2013 · 0 comments
Open

Keyword arguments #11

toivoh opened this issue Jan 5, 2013 · 0 comments

Comments

@toivoh
Copy link
Owner

toivoh commented Jan 5, 2013

Once #10 is in place, it might be worth to try to construct a mechanism for keyword arguments on top of it. In it's simplest form, this could be dict parameters with a way to supply default values.

It might also be possible to embed this more firmly into the syntax, e.g.

@pattern f(:x => x::Int, :y => y::Int) = ...

Such a function might be called in a way like (@p f(:x => 5, :y => 2)).
This kind of integration would hopefully be able to decrease overhead as well, circumventing actual construction and inspection of dicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant