codethesaur.us icon indicating copy to clipboard operation
codethesaur.us copied to clipboard

[Swift] Fix ordered/unordered/sorted lists

Open geekygirlsarah opened this issue 2 years ago • 0 comments

Problem

This issue is to fix the ordered/unordered/sorted lists in Swift's lists.json file(s).

When the original meta lists.json was released, it was ambiguous whether "ordered" meant "sorted" or not. Due to that ambiguity, different languages implemented it differently.

With the meta language file now fixed and can distinguish distinguish the difference between ordered (items added retain their order), unordered (items added have no guarantee of order), and sorted (items added are rearranged to stay in order), Swift needs to be fixed to correct its usage of this.

The file(s) to update is /web/thesauruses/swift/[version]/lists.json.

  1. The file needs to add the IDs for sorted mutable lists and sorted immutable lists from /web/thesauruses/meta/lists.json.
  2. Go back over ordered/unordered mutable/immutable lists, and make sure the entries for those 4 sections are all correct, and shift them around if they aren't.

Additional Info

See @cafce25's comment on #481 here for how this came about and what language edits are needed.

geekygirlsarah avatar Jun 27 '22 23:06 geekygirlsarah