Skip to content

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
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.

4 participants