Merge pull request #18247 from bradcray/deprecate-range-ident
Deprecate ident() routine for ranges
[reviewed by @mppf]
ident() routine is pretty odd in that it's the only type
to support such a routine, was probably originally developed for
our own use, and yet even then is almost never used. It feels a bit
like a wart and doesn't really have advocates within the team.
We've talked about replacing it with '===' in the long-term, and
this would not be hard to do in the short-term (other than making
sure that we do something reasonable with it for other types), but
also conjectured that since it is probably virtually unused/unknown
to users, we could probably just deprecate it and see whether anyone
notices or cares. If not, we can remove it next release; if so, we can
=== or see whether users are OK comparing the l,h,s,a
tuple values themselves.
This PR adds the deprecation messages, creates an internal code
clone for the single internal use of the routine (and to keep the
deprecated versions working), and removes calls to ident() from
our tests (all of which were tests that focused on making sure all
range methods were working as expected, so not interesting).
Modified Files: A test/deprecated/rangeIdent.chpl