Skip to content

self should be a keyword #4176

@pcwalton

Description

@pcwalton
Contributor

Contextual right now; needs to be a real keyword.

Activity

sonwow

sonwow commented on Jan 25, 2013

@sonwow
Contributor

I'm working on this issue.

sonwow

sonwow commented on Feb 4, 2013

@sonwow
Contributor

In my opinion, if self is converted to a keyword it is impossible to use self keyword to function name, trait name and module name. Is there anything else? Please let me know your opinion about this.

graydon

graydon commented on Feb 4, 2013

@graydon
Contributor

The intent of this bug (which I concur with) is for self to be usable only as the name of the self-parameter in methods, and possibly the lifetime associated with that parameter.

In any case, it's fine by me -- fitting with the purpose of this bug -- if we lose arbitrary additional contexts for its use (function names, trait names, module names, etc.)

z0w0

z0w0 commented on Feb 16, 2013

@z0w0
Contributor

I'm pretty sure this is done now.

catamorphism

catamorphism commented on Feb 16, 2013

@catamorphism
Contributor

Is this done? I can't find the commit that fixes it.

sonwow

sonwow commented on Feb 18, 2013

@sonwow
Contributor

As far as I know, this is not done. If you want to do this issue, please comment here and do that.

brson

brson commented on Mar 31, 2013

@brson
Contributor

Not 0.6

sanxiyn

sanxiyn commented on May 3, 2013

@sanxiyn
Member

Nominating for backwards compatible milestone.

graydon

graydon commented on May 9, 2013

@graydon
Contributor

accepted for backwards-compatible milestone

pcwalton

pcwalton commented on May 16, 2013

@pcwalton
ContributorAuthor

Fixed.

added a commit that references this issue on Dec 6, 2020
c1664c5
added a commit that references this issue on Feb 24, 2025
4d78916
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of Rust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@sanxiyn@brson@pcwalton@catamorphism

        Issue actions

          `self` should be a keyword · Issue #4176 · rust-lang/rust