# What is unescape in v0.7?

**URL:** <https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530>\
**Category:** General Usage\
**Created:** [July 20, 2018, 12:01pm UTC](https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530 "2018-07-20T12:01:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [July 20, 2018, 12:01pm UTC](https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530/1 "2018-07-20T12:01:28Z")

</div>

I was looking into the doc system, but I’m quite confused with the v0.7’s doc macro:

```julia
# docsystem basics
const unescape = Symbol("hygienic-scope")
macro doc(x...)
    docex = atdoc( __source__ , __module__ , x...)
    isa(docex, Expr) && docex.head === :escape && return docex
    return Expr(:escape, Expr(unescape, docex, typeof(atdoc).name.module))
end

```

Is there anyone who could explain a little bit about what is an unescape?

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [July 20, 2018, 12:22pm UTC](https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530/2 "2018-07-20T12:22:58Z")

</div>

FYI, the [doc](https://docs.julialang.org/en/latest/devdocs/ast/#Macros-2) says:

> Macro hygiene is represented through the expression head pair escape and hygienic-scope. The result of a macro expansion is automatically wrapped in (hygienic-scope block module), to represent the result of the new scope. The user can insert (escape block) inside to interpolate code from the caller.

---

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [July 20, 2018, 12:26pm UTC](https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530/3 "2018-07-20T12:26:14Z")

</div>

I still don’t get it. Anyone could explain more about what `unescape` do here?

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [July 20, 2018, 12:29pm UTC](https://discourse.julialang.org/t/what-is-unescape-in-v0-7/12530/4 "2018-07-20T12:29:08Z")

</div>

I guess that’s something related to macro hygiene, see this issue: [https://github.com/JuliaLang/julia/pull/27314](https://github.com/JuliaLang/julia/pull/27314)
