Skip to content

Commit

Permalink
Merge pull request #85 from phel-lang/fix-typo-macros
Browse files Browse the repository at this point in the history
fix: typo in macros page.
  • Loading branch information
Chemaclass authored Sep 26, 2024
2 parents 9abc9b4 + cdb1270 commit 6d22502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/documentation/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This macro is very simple at does not support all the feature of `defn`. But it

## Quasiquote

For better readability of marcos the `quasiquote` special form is defined. It turns the definition of macros around. Instead of quoting values that should not be evaluated, `quasiquote` marks values that should be evaluated. Every other value is not evaluated. A shorthand for `quasiquote` is the `` ` `` character. Values that should be evaluated are marked with the `unquote` function (shorthand `,`) or `unquote-splicing` function (shorthand `,@`). With quasiquote the `mydefn` macro can be expressed as
For better readability of macros the `quasiquote` special form is defined. It turns the definition of macros around. Instead of quoting values that should not be evaluated, `quasiquote` marks values that should be evaluated. Every other value is not evaluated. A shorthand for `quasiquote` is the `` ` `` character. Values that should be evaluated are marked with the `unquote` function (shorthand `,`) or `unquote-splicing` function (shorthand `,@`). With quasiquote the `mydefn` macro can be expressed as

```phel
(defmacro mydefn [name args & body]
Expand Down

0 comments on commit 6d22502

Please sign in to comment.