Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce intermediate collections in type checker #1213

Merged
merged 3 commits into from
May 25, 2016

Conversation

forki
Copy link
Contributor

@forki forki commented May 21, 2016

Link to files with whitespace ignored:
https://github.com/Microsoft/visualfsharp/pull/1213/files?w=1

match nameSearch with
| None -> None
| Some nm -> Some (nm, maintainsVarSpaceUsingBind, maintainsVarSpace, allowInto, isLikeZip, isLikeJoin, isLikeGroupJoin, joinConditionWord, methInfo))
if IsMethInfoAccessible cenv.amap mBuilderVal ad methInfo then
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe for this one, invert if to minimize diff?:

if not (IsMethInfoAccessible cenv.amap mBuilderVal ad methInfo) then None
else
// same indentation as before

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that would be helpful. Or sometimes I locally switch to two-space indent to minimize the diff (and then submit a separate cleanup later if needed)

@KevinRansom
Copy link
Member

@vasily-kirichenko it's an @dsyme thing. I get told off about it all of the time.

This link does the diff without whitespace changes.

https://github.com/Microsoft/visualfsharp/pull/1213/files?w=1

By all means continue to improve readability: Just edit the comment to include a link to the files with
?w=1 appended to it.

@dsyme
Copy link
Contributor

dsyme commented May 24, 2016

That link is very helpful :)

This is good to go in, we can merge it.

@KevinRansom KevinRansom merged commit 841e8a6 into dotnet:master May 25, 2016
@KevinRansom
Copy link
Member

@forki
Thank you for tking care of this

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.

7 participants