Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Conversation

@dimo414
Copy link

@dimo414 dimo414 commented Oct 3, 2018

I took a first pass at #21, making the minimum changes necessary to avoid LinkedList. This is a breaking change, which I know isn't likely to be acceptable, but this change seems like a good point to start the conversation from.

As mentioned on the bug we could @Deprecate the existing methods and introduce new ones (e.g. public List<Diff> diff_main_2(String text1, String text2) or whatever naming scheme we'd like), however one bigger wrinkle is the public LinkedList<Diff> diffs field on Patch. Since it's public we can't safely migrate the field to List; though we could similarly deprecate it and introduce a diffs2 (or whatever) field.

What are your thoughts? I do believe this is worth doing, as it's a somewhat expensive class to force people to use, but it may be fairly crufty to leave in a bunch of deprecated LinkedList usages everywhere. Is there any room for a breaking change? As a Java user this is the sort of breakage I'd appreciate, personally.

@dimo414 dimo414 closed this Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant