Open bradcray opened 6 years ago
@lydia-duncan : This is the feature request I mentioned today.
This feature would be a big boon for index-neutral programming, even if it was only supported for 1D arrays.
I've added the 'user issue' label here because @damianmoz expressed interest in this feature in https://github.com/chapel-lang/chapel/issues/24440.
For about as long as Chapel has existed (e.g., see this future from 2008), there's been an intention to support inferred-size arrays using domains involving partially bounded ranges like the following:
In addition, one might want to use this form to declare a function's return type:
or:
Today this results in an error because we build the domain before building the array and require domains to be defined using bounded ranges (something we probably want to retire for other reasons—see issue #10595).