Skip to content

Conversation

Manishearth
Copy link
Member

Since enums are namespaced now, should we also remove the Fk prefixes from FnKind and remove the reexport? (The reexport must be removed because otherwise it clashes with glob imports containing ItemFn). IMO writing FnKind::Method is much clearer than FkMethod.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@marcusklaas
Copy link
Contributor

Nice! Could something similar be done for the Expr_ enum?

@Manishearth
Copy link
Member Author

Expr_ already implements Eq?

As for the naming, I think ExprFoo is better there because the whole AST is glob-exported and imported everywhere.

@pnkfelix
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 24, 2015

📌 Commit c03bf18 has been approved by pnkfelix

@bors
Copy link
Collaborator

bors commented Aug 24, 2015

⌛ Testing commit c03bf18 with merge 797d0ba...

bors added a commit that referenced this pull request Aug 24, 2015
Since enums are namespaced now, should we also remove the `Fk` prefixes from `FnKind` and remove the reexport? (The reexport must be removed because otherwise it clashes with glob imports containing `ItemFn`). IMO writing `FnKind::Method` is much clearer than `FkMethod`.
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.

5 participants