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

unnecessary token "<-" in token definition #22934

Closed
madmalik opened this issue Mar 1, 2015 · 4 comments
Closed

unnecessary token "<-" in token definition #22934

madmalik opened this issue Mar 1, 2015 · 4 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@madmalik
Copy link
Contributor

madmalik commented Mar 1, 2015

The LArrow is defined as a token, but serves no purpose in the language as far as i can tell.

Maybe an oversight?

@kmcallister
Copy link
Contributor

Nominating P-backcompat-lang:

macro_rules! foo {
    (<-) => ("yes");
    ($($x:tt)*) => ("no");
}

fn main() {
    println!("{}", foo!(< -));
}

(above currently prints no, in case one is curious)

@pnkfelix
Copy link
Member

pnkfelix commented Mar 5, 2015

was used for moves!

@nrc nrc added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Mar 5, 2015
@pnkfelix
Copy link
Member

pnkfelix commented Mar 5, 2015

we're going to reserve the token for future use.

@pnkfelix pnkfelix closed this as completed Mar 5, 2015
@kmcallister
Copy link
Contributor

That makes sense to me. Good to know it's there on purpose :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

4 participants