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

Support Traitor syntax? #4

Closed
mauro3 opened this issue Jul 25, 2016 · 1 comment
Closed

Support Traitor syntax? #4

mauro3 opened this issue Jul 25, 2016 · 1 comment

Comments

@mauro3
Copy link
Owner

mauro3 commented Jul 25, 2016

Should Traitor-like syntax sugar be added? Looks like:

@traitfn function howbig(x::Any::Big)
    "Huge!"
end

from the readme of https://github.com/andyferris/Traitor.jl. Would be equivalent to:

@traitfn function howbig{X; Big{X}}(x::X)
    "Huge!"
end
@mauro3
Copy link
Owner Author

mauro3 commented Oct 13, 2016

Note, that still only one trait can appear per function signature.

Thanks to @c42f and @andyferris for the good ideas.

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

No branches or pull requests

1 participant