Skip to content

Implement Xprint-diff without external libraries. #1417

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

Merged
merged 1 commit into from
Aug 26, 2016

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@odersky
Copy link
Contributor

odersky commented Jul 31, 2016

@nicolasstucki Can you propose a reviewer?

@nicolasstucki
Copy link
Contributor Author

Review by @DarkDimius

@nicolasstucki
Copy link
Contributor Author

BTW, I found some bugs with the current implementation. I did not try to minimize them and add them to the issue tracker because this PR fixes them.

val insert = F(i)(j - 1) + d
F(i)(j) = mtch max insert max delete
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use Array.tabulate rather than Array.fill?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was to remain as close as possible to the pseudocode of the algorithm. I will change it now to save up two small traversals.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented

@nicolasstucki nicolasstucki force-pushed the fix-output-diff branch 2 times, most recently from d024f46 to f2893c4 Compare August 11, 2016 13:54
@odersky
Copy link
Contributor

odersky commented Aug 14, 2016

Can this go in now?

@nicolasstucki
Copy link
Contributor Author

I should be ready to go in. In the last update I just changed a couple of variable names that Codacy suggested and I completely agreed with it in those cases.

@DarkDimius
Copy link
Contributor

LGTM

@DarkDimius DarkDimius merged commit 90c1106 into scala:master Aug 26, 2016
@allanrenucci allanrenucci deleted the fix-output-diff branch December 14, 2017 19:20
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