Add a default value option for new_array
Issue #226
wontfix
Among other things, it’d be nice to do
global_ptr<int> p = new_array<int>(num_values, init_value);
Comments (2)
-
-
- changed status to wontfix
This issue was discussed at the 2019-07-24 Pagoda issue meeting.
Given the availability of an existing concise and efficient mechanism to accomplish the requested semantics (given in the first comment), we are not planning to pursue this suggestion at this time.
- Log in to comment
I agree this might be nice syntactic sugar, but there's no reason to believe it would ever be more efficient than:
Which you can of course wrap up in your own sugar function.