Branch: refs/heads/main
Revision: 7f1b74146a6b799423922a693f590b054d524601
Author: lydia-duncan
Link: Deprecate old Sort functions and replace with new argument lists by lydia-duncan · Pull Request #25625 · chapel-lang/chapel · GitHub
Log Message:
Deprecate old Sort functions and replace with new argument lists (#25625)
[reviewed by @jabraham17]
Resolves #25544
Implements the decisions reached by the Sort discussion team. Updates
the argument lists for:
sort
by renaming the array argument and removing the
inPlaceAlgorithm
argument (which was confusing), and removing the
queries. Also usesnew DefaultComparator()
instead of the
module-scoped variable.isSorted
by renaming the array argument, removing the queries and
usingnew DefaultComparator()
instead of the module-scoped variable.- and the
sorted
iterator by removing the queries and usingnew DefaultComparator()
instead of the module-scoped variable.
The sorted iterator did not need a deprecation for this change.
Adds tests locking in the deprecation messages for sort
and
isSorted
.
Passed a full paratest with futures
Diff:
M modules/standard/Sort.chpl
A test/deprecated/Sort/depSortInPlace.chpl
A test/deprecated/Sort/depSortInPlace.good
A test/deprecated/Sort/isSortedDep.chpl
A test/deprecated/Sort/isSortedDep.good
https://github.com/chapel-lang/chapel/pull/25625.diff