Skip to content

Change the syntax for type parameter kinds #1067

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

Closed
marijnh opened this issue Oct 24, 2011 · 0 comments
Closed

Change the syntax for type parameter kinds #1067

marijnh opened this issue Oct 24, 2011 · 0 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Oct 24, 2011

[This was the relevant e-mail I sent to rust-dev. No one objected, several people agreed.]

At least two people have confused @t with a boxed type in the past
weeks. Even me, who really should know better at this point,
occasionally misinterpret some code because of the similarity between
the two. The same probably goes for ~T.

I think we should change the syntax. It can be a little more verbose,
I think, as long as it doesn't resemble other type-related syntax.

I'd also support making 'shared' the default kind for type parameters.
It is usually what you want.

Proposal: 'pinned T' and 'unique T' for pinned/unique type params. 'T'
for shared ones.

@ghost ghost assigned marijnh Oct 24, 2011
marijnh added a commit that referenced this issue Oct 25, 2011
Issue #1067

Needs a snapshot to finalize.
@marijnh marijnh removed their assignment Jun 16, 2014
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