# Partially non-hygienic macros?

**URL:** <https://racket.discourse.group/t/partially-non-hygienic-macros/303>\
**Category:** General\
**Created:** [November 29, 2021, 4:39pm UTC](https://racket.discourse.group/t/partially-non-hygienic-macros/303 "2021-11-29T16:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstorrs](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dstorrs](https://racket.discourse.group/u/dstorrs)\
**Post date:** [November 29, 2021, 4:39pm UTC](https://racket.discourse.group/t/partially-non-hygienic-macros/303/1 "2021-11-29T16:39:31Z")

</div>

Moving this from the "Differences from other Lisps" thread instead of hijacking it:

> [@Differences with other lisps?](https://racket.discourse.group/t/differences-with-other-lisps/124/5):
>
> Racket allows non-hygienic macros which still maintain hygiene except where explicitly broken since identifiers have an associated scope that can be set. I think R6RS also has this, but I don't think it is quite as powerful as Racket's macro system.

Cool, I wasn't aware of that. I have a couple of non-hygienic macros that work by shuffling things back and forth with datum-\>syntax and syntax-\>datum, but that has always seemed clumsy. What is the right way to do it?

---

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [November 29, 2021, 7:55pm UTC](https://racket.discourse.group/t/partially-non-hygienic-macros/303/2 "2021-11-29T19:55:59Z")

</div>

I think @ryanc gives a good explanation here

[https://groups.google.com/g/racket-users/c/5uTJEGD0Oj0/m/aKJu0FT0CgAJ](https://groups.google.com/g/racket-users/c/5uTJEGD0Oj0/m/aKJu0FT0CgAJ)

I hope the link works - it is dated 23 Jan 2020 if it doesn’t it should be visible via the archives at [https://lists.racket-lang.org/](https://lists.racket-lang.org/)

---

<div class="post-metadata">

**Author:** ![dstorrs](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dstorrs](https://racket.discourse.group/u/dstorrs)\
**Post date:** [November 29, 2021, 9:24pm UTC](https://racket.discourse.group/t/partially-non-hygienic-macros/303/3 "2021-11-29T21:24:12Z")

</div>

Very nice. Thanks, Stephen.
