Skip to content

Commit df5f4a2

Browse files
committed
Update NEWS.md for generated functions
cc @tlycken - I adapted some of your language here. We should probably link to your documentation PR once it is merged, too. You're welcome to modify this, too. [av skip]
1 parent 2a81411 commit df5f4a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

NEWS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ New language features
1818

1919
* Keyword argument names can be computed, using syntax such as `f(; symbol => val)` ([#7704]).
2020

21-
* (TODO pending final syntax) staged functions ([#7311]).
21+
* The `@generated function` enables generation of specialized methods depending
22+
upon the types of its arguments. Sometimes referred to as a staged function,
23+
it operates at two different stages of evaluation. At compile time, the generated
24+
function is called with its arguments bound to the types for which it should
25+
specialize. The quoted expression it returns forms the body of the specialized
26+
method which is then called at run time. ([#7311]).
2227

2328
* (Also with syntax todo) Documentation system for functions, methods, types
2429
and macros in packages and user code ([#8791]). Type `?@doc` at the repl

0 commit comments

Comments
 (0)