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

Pseudomethods #341

Closed
wants to merge 3 commits into from
Closed

Pseudomethods #341

wants to merge 3 commits into from

Conversation

lkuper
Copy link
Contributor

@lkuper lkuper commented Apr 27, 2011

Here's some very simple support for pseudomethods. It does all its desugaring in the parser, and everything looks like an ordinary expr_call node from there on out. The '::' syntax was suggested by pcwalton.

lkuper added 3 commits April 26, 2011 19:41
So far, all this does is handle desugaring of pseudomethod calls into
one-argument functions.  Started sketching out how to desugar into
multi-argument functions in the comments; that's not done yet.

The '::' syntax was suggested by pcwalton.  If we want to use ordinary
method call syntax (dot), then this becomes rather harder, because we
have to treat the pseudomethod call as a field expression and then
expect arbitrary expressions as the base of that field expression,
which breaks a lot of existing places in the compiler.
@lkuper
Copy link
Contributor Author

lkuper commented May 17, 2011

Turns out this is not what we want after all (and the patch is now obsolete anyway).

@lkuper lkuper closed this May 17, 2011
oli-obk added a commit to oli-obk/rust that referenced this pull request Sep 19, 2017
Use rustc's APFloat impl instead of interpreter host floats
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
arm-musl targets now use cfg(target_env = "musl")
dlrobertson pushed a commit to dlrobertson/rust that referenced this pull request Nov 29, 2018
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Oct 26, 2020
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this pull request Mar 7, 2023
* clean up fixgradient return type
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

Successfully merging this pull request may close these issues.

1 participant