Skip to content

Small cleanup in hot path of NameResolution - #1211

Merged
KevinRansom merged 5 commits into
dotnet:masterfrom
forki:nameres
May 25, 2016
Merged

KevinRansom merged 5 commits into
dotnet:masterfrom
forki:nameres

Conversation

@forki

@forki forki commented May 21, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/fsharp/ConstraintSolver.fs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We may reindent and space the tuple

if occursCheck csenv.g r ty then
    ErrorD (ConstraintSolverInfiniteTypes(csenv.DisplayEnv, ty1, ty, m, m2))
else
// keep same indentation there, that fun () is huge

or at least keep the else on the next line

@dsyme what is up with style of spacing in tuples? I've seen some fortran codebase where those won't have any spaces between each argument in the list, I think it reads better with spacing but not sure what you prefer for the compiler codebase.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Space-after-comma is preferred. But as per my comment on another thread, that would go in a separate cleanup PR.

@dsyme

dsyme commented May 21, 2016

Copy link
Copy Markdown
Contributor

This all looks good - added some comments above.

@KevinRansom
KevinRansom merged commit 83be66f into dotnet:master May 25, 2016
@KevinRansom

Copy link
Copy Markdown
Contributor

@forki
Thank you for taking care of this cleanup.

Kevin

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.

5 participants