From 9e2f1e76f2c8df01ed7687d934c3210fcf676bd6 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 16 Jun 2022 00:48:19 -0400 Subject: De-sigil-ification: suffix : [Part 13] --- documentation/book/the_lux_programming_language/chapter_10.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'documentation/book/the_lux_programming_language/chapter_10.md') diff --git a/documentation/book/the_lux_programming_language/chapter_10.md b/documentation/book/the_lux_programming_language/chapter_10.md index d2937a83b..6c86c9671 100644 --- a/documentation/book/the_lux_programming_language/chapter_10.md +++ b/documentation/book/the_lux_programming_language/chapter_10.md @@ -130,7 +130,7 @@ The beautiful thing is that `(' (you can use the "'" #macro [to generate {arbitr ... Hygienic quasi-quotation as a macro. ... Unquote (~) and unquote-splice (~+) must also be used as forms. ... All unprefixed symbols will receive their parent module's prefix if imported; otherwise will receive the prefix of the module on which the quasi-quote is being used. -(` (def: (~ name) +(` (def (~ name) (function ((~ name) (~+ args)) (~ body)))) ``` @@ -154,7 +154,7 @@ With these tools, you can introduce a lot of complexity and customization into y ```clojure ... Unhygienic quasi-quotation as a macro. ... Unquote (~) and unquote-splice (~+) must also be used as forms. -(`' (def: (~ name) +(`' (def (~ name) (function ((~ name) (~+ args)) (~ body)))) ``` -- cgit v1.2.3