Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Move code out of closure in getReferencedSymbolsForNode#13476

Merged
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
findallrefs_unclosuremicrosoft/TypeScript:findallrefs_unclosureCopy head branch name to clipboard
Jan 16, 2017
Merged

Move code out of closure in getReferencedSymbolsForNode#13476
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
findallrefs_unclosuremicrosoft/TypeScript:findallrefs_unclosureCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jan 13, 2017

Copy link
Copy Markdown

Since this is in its own module now, it doesn't need a closure for encapsulation.

@sandersn

Copy link
Copy Markdown
Member

What's the advantage of this change? Is it faster? Easier to read? Less indented?

@ghost

ghost commented Jan 14, 2017

Copy link
Copy Markdown
Author

Less state implicitly shared by 1000 lines of code. A large closure is essentially a god class.

@ghost ghost merged commit 3b0f2c1 into master Jan 16, 2017
@ghost ghost deleted the findallrefs_unclosure branch January 16, 2017 17:18
@ghost ghost mentioned this pull request Apr 2, 2018
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.