Skip to content

Commit 9e0c29c

Browse files
committed
Clarify what specifying the module name does with &
1 parent 1e0559e commit 9e0c29c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,13 @@ defmodule Kernel.SpecialForms do
17861786
17871787
&local_function/1
17881788
1789+
When the capture operator is given a module name, a remote/external capture
1790+
is created. Remote captures are faster than local captures. For more
1791+
information, refer to the ["Functions" section in the Erlang Reference Manual](https://www.erlang.org/doc/system/eff_guide_functions.html#function-calls).
1792+
1793+
Note that local captures dispatch to the version of the module which created
1794+
them, while remote captures dispatch to the current version of the module.
1795+
17891796
See also `Function.capture/3`.
17901797
17911798
## Anonymous functions

0 commit comments

Comments
 (0)