Closed riverrun closed 4 years ago
If we move the Modules and Functions
section, I think we should just include an introduction to modules and the Private Functions
and Function Arity
subsections. We can cover the information about hierarchical modules and import, alias and use in a later part of the same page (maybe in a More about Modules
section).
We could also move the Modules and Functions
section to before the Atoms
section, instead of after the Strings
section.
Also, we will need to move the information about anonymous functions and the capture operator to after the Lists and Tuples
section because the higher-order functions we will want to use will be operating on lists.
I think we can move the
Modules and Functions
section to an earlier and more prominent position (before theAnonymous Functions
section) in theelixir-introduction
. This is because most of the functions that developers will read and write are regular functions (within modules) and it makes it easier to look at anonymous functions (and the capture operator) in the way they are most often used (as arguments in higher-order functions) if we look at them after covering regular functions.My proposal is to move the
Modules and Functions
section to after theStrings
section and to move theAnonymous Functions
andCapture Operator
sections to subsections before theHierarchical Modules
section. Also, I want to add more examples using higher-order functions to theAnonymous Functions
andCapture Operator
sections.