on master help sign in
add note about =, name shadowing
0d8284fTinnus Napbus
content/docs/userspace/full-stack/4-json.md+3−1
@@ -240,7 +240,9 @@ handle incoming poke `$action`s and outgoing facts or scry result `$update`s.
240The first thing we do is use the [`=,`
240The first thing we do is use the [`=,`
241rune](/docs/hoon/reference/rune/tis#-tiscom) to expose the `++dejs:format`
241rune](/docs/hoon/reference/rune/tis#-tiscom) to expose the `++dejs:format`
242namespace. This allows us to reference `ot`, `ni`, etc rather than having to
242namespace. This allows us to reference `ot`, `ni`, etc rather than having to
243−write `ot:dejs:format` every time.
243+write `ot:dejs:format` every time. Note that you should be careful using `=,`
244+generally as the exposed wings can shadow previous wings if they have the same
245+name.
244
246
245We then create a gate that takes `$json` and returns a `$action` structure.
247We then create a gate that takes `$json` and returns a `$action` structure.
246Since we'll only take one action at a time, we can use the `++of` function,
248Since we'll only take one action at a time, we can use the `++of` function,