-
Notifications
You must be signed in to change notification settings - Fork 832
Add a short documentation for use
#619
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
Conversation
THank you! @weppos the issue is that |
Fine for me. Changing it now. |
See elixir-lang#619 (comment) ent-147978903
Done. Give it a look and let me know if it works for you. |
@@ -118,6 +118,7 @@ In the example above, the imported `List.duplicate/2` is only visible within tha | |||
|
|||
Note that `import`ing a module automatically `require`s it. | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was probably added in the cut&paste. Removing it...
I have added two more comments and we are good to go. :) |
Here we go. Thanks for your feedback. |
Add a short documentation for `use`
❤️ 💚 💙 💛 💜 |
I was reading the "Getting started" guide and one of the things I noticed is that the section where
require
,alias
andimport
are documented doesn't include any explanation foruse
. In fact,use
is not mentioned at all in the entire getting started guide.I know
import
,require
andalias
areSpecialForm
whereasuse
is defined asKernel
macro, however it's not uncommon to see new users confused by this specific keyword: see here and here.This branch takes bits and pieces from the answers above and the
use/2
documentation, and adds a new section in the "getting started" to explain the purpose ofuse
.What do you think?