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

Higher-order methods #18

Closed
ppolesiuk opened this issue Mar 23, 2024 · 0 comments · Fixed by #58
Closed

Higher-order methods #18

ppolesiuk opened this issue Mar 23, 2024 · 0 comments · Fixed by #58
Assignees
Labels
enhancement New feature or request

Comments

@ppolesiuk
Copy link
Member

Method constraints can be treated as another form of named parameters. Consider the following code.

method toString {A, method toString : A ->[] String, self : List A} = ...

Of course, concrete syntax can be negotiated.

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

Successfully merging a pull request may close this issue.

2 participants