-
Notifications
You must be signed in to change notification settings - Fork 785
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
Conversation
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
@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 |
That link is very helpful :) This is good to go in, we can merge it. |
@forki Kevin |
Link to files with whitespace ignored:
https://github.com/Microsoft/visualfsharp/pull/1213/files?w=1