doc: don't use `using namespace v8`
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 11 Mar 2015 13:14:18 +0000 (14:14 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 21 Mar 2015 13:05:18 +0000 (14:05 +0100)
commit55abf34be5f56d500cacd668fd9192ddd065c002
treefd8c25bf9bfe2a0906582e12fdc4bbde16cec700
parentc4e1b82120ae4d14e0f29b4715a54397728a0f76
doc: don't use `using namespace v8`

Wholesale importing an entire namespace with `using namespace` is a bad
practice.  Remove it from the addons documentation and replace it with
proper `using` directives.  Wrap code in a namespace while we are here.

PR-URL: https://github.com/iojs/io.js/pull/1125
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
doc/api/addons.markdown