chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.78k stars 418 forks source link

Supporting the `sortComparator` interface #25554

Open jabraham17 opened 2 months ago

jabraham17 commented 2 months ago

This issue captures the desire from https://github.com/chapel-lang/chapel/issues/24857 to have a single interface to represent the functions that a comparator might define.

There are three kinds of comparators

The sortComparator is the mutually exclusive OR of these three interfaces. However it is not currently possible to implement this with the current interfaces design.

jabraham17 commented 3 weeks ago

This PR will add a blank sortComparator interface to the Sort module. This interface is not meant to be publicly used yet (it does nothing), but it does reserve the name sortComparator in the Sort module.