on master help sign in
add note about =, name shadowing
commit0d8284fd470faab95dea13bbd6829a4b0b1a48fe authorTinnus Napbus <admin@tinnus-napbus.xyz> dateMon 11 Apr 2022, 03:00 (5 years ago) parent3256beb
1 file changed+3−1
content/docs/userspace/full-stack/4-json.md+3−1
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.
240240The first thing we do is use the [`=,`
241241rune](/docs/hoon/reference/rune/tis#-tiscom) to expose the `++dejs:format`
242242namespace. 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.
244246
245247We then create a gate that takes `$json` and returns a `$action` structure.
246248Since we'll only take one action at a time, we can use the `++of` function,