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

[RFC] rename module_parent to enclosingmodule #25436

Closed
wants to merge 1 commit into from

Conversation

Sacha0
Copy link
Member

@Sacha0 Sacha0 commented Jan 6, 2018

Renaming module_parent to enclosingmodule came up in a slack conversation between @malmaud, @JeffBezanson, and myself. This pull request explores that change. Thoughts? Best!

@StefanKarpinski
Copy link
Sponsor Member

At least module_parent matches module_name though.

@Sacha0
Copy link
Member Author

Sacha0 commented Jan 6, 2018

At least module_parent matches module_name though.

I had the same reaction when I saw module_parent next to module_name :). Perhaps if module_parent changes, module_name should change as well? The docstring reads

  module_name(m::Module) -> Symbol

  Get the name of a Module as a Symbol.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> module_name(Base.LinAlg)
  :LinAlg

which almost seems like a method of the Symbol constructor apart from the qualification-drop? Best!

@martinholters
Copy link
Member

almost seems like a method of the Symbol constructor apart from the qualification-drop

Indeed,

julia> Symbol(Base.LinAlg)
Symbol("Base.LinAlg")

does not look useful, does it? Should we just change that?

@Sacha0
Copy link
Member Author

Sacha0 commented Jan 12, 2018

Status quo it is :). Thanks all!

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.

None yet

4 participants