Skip to content

Singleton code example simplification#176

Open
svenheden wants to merge 1 commit intoaddyosmani:masterfrom
svenheden:singleton-demo
Open

Singleton code example simplification#176
svenheden wants to merge 1 commit intoaddyosmani:masterfrom
svenheden:singleton-demo

Conversation

@svenheden
Copy link
Copy Markdown
Contributor

This simplifies the singleton code example by comparing object references instead of random numbers.

This is just a proposal, I'm not 100% sure this makes the code example more clear, but maybe. :)

I think it shows the intent of the comparison in the end more, and the random number disclaimer is no longer needed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant