JavaScript:SpiderMonkey:C++ Coding Style: Difference between revisions

Line 13: Line 13:
* Instead of js_ prefixing for library-private and "friend" functions,
* Instead of js_ prefixing for library-private and "friend" functions,
  namespace js { ... }
  namespace js { ... }
* Compile-time-evaluated functions (i.e., template meta-functions) are kept in the "template library" namespace, js::tl, to avoid collision with their runtime counterparts.
* Compile-time-evaluated functions (i.e., template meta-functions) are kept in the "template library" namespace to avoid collision with their runtime counterparts.
namespace js { namespace tl { ... } }
* Other namespaces? Are these names too short and likely to collide?
* Other namespaces? Are these names too short and likely to collide?


Confirmed users
367

edits