Skip to content

Commit 7f0a595

Browse files
doc: remove mention of hygienic macros from the language reference
Fixes #1208
1 parent b60f5a0 commit 7f0a595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/ref/language.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ and3(true, false, error "this one is never evaluated")
159159
The expression `error "message"` raises an error with the provided message string. Thus, in this example, the values for `a` and `b` are evaluated because they are required to compute `a && b`. However, since `a && b` is `false` - there is no need to evaluate the value for `c` and the error is never thrown.
160160

161161

162-
Functions in Jsonnet are [referentially transparent](https://en.wikipedia.org/wiki/Referential_transparency), meaning that any function call can be replaced with its definition, without changing the meaning of the program. Therefore, in some sense, functions in Jsonnet are [hygienic macros](https://en.wikipedia.org/wiki/Hygienic_macro). For example consider the following snippet:
162+
Functions in Jsonnet are [referentially transparent](https://en.wikipedia.org/wiki/Referential_transparency), meaning that any function call can be replaced with its definition, without changing the meaning of the program. For example consider the following snippet:
163163

164164
```
165165
local pow2(n) = if n == 0 then 1 else 2 * pow2(n - 1);

0 commit comments

Comments
 (0)