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

allow where syntax in constructor definitions #35861

Merged
merged 1 commit into from
May 13, 2020
Merged

Conversation

JeffBezanson
Copy link
Member

This is kind of an oversight; we might as well allow it since Foo{<:T}(x) = ... already works. This removes the need to use Type{T} for the called object, except when T is a typevar (we could maybe consider allowing that too). This also allows us to use more concise syntax when printing method signatures.

@JeffBezanson JeffBezanson added the compiler:lowering Syntax lowering (compiler front end, 2nd stage) label May 12, 2020
@JeffBezanson JeffBezanson merged commit db90631 into master May 13, 2020
@JeffBezanson JeffBezanson deleted the jb/wherefunction branch May 13, 2020 17:41
Roger-luo pushed a commit to Roger-luo/julia that referenced this pull request May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants