[design] indexing into enums / enum.indices

Hi Chapel community —

I'm looking for feedback on a proposal to support two new features on enum types:

  1. supporting myEnum[i] as a means of getting the 'i'th symbol in the enumeration
  2. supporting myEnum.indices as a means of getting the range 0..<myEnum.size

The first supplies a capability that is not available for end-users today; the second continues the recent trend of having indexable things support a query indicating what indices can be used with them.

If you have thoughts on this, or would like to upvote the proposal, please see: