Skip to content

add a shared namespace#56

Open
RobinQu wants to merge 3 commits intoothiym23:masterfrom
RobinQu:master
Open

add a shared namespace#56
RobinQu wants to merge 3 commits intoothiym23:masterfrom
RobinQu:master

Conversation

@RobinQu
Copy link
Copy Markdown

@RobinQu RobinQu commented Dec 23, 2015

No description provided.

@othiym23
Copy link
Copy Markdown
Owner

What's the use case behind this? In principle, I have no objection, but I'd like to understand what you're trying to do. Also, before this gets merged, it'll need tests and documentation.

Comment thread context.js
reset : reset,
getSharedNamespace: function () {
if (!process.sharedNamespace) {
process.sharedNamespace = create('shared_' + Date.now() + '_' + Math.random());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of generating a random name and leaving things to chance, why not consider doing it right and implementing anonymous namespaces as I requested in #52?

@binki
Copy link
Copy Markdown

binki commented Sep 29, 2016

Instead of some “shared namespace” why not just use an agreed-upon namespace name? I agree with @othiym23, the goal of this PR is unclear and the only use cases I can guess at are nonsensical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants