Trying to understand multidimensional arrays in D
Rekel
paultjeadriaanse at gmail.com
Tue Dec 22 18:58:33 UTC 2020
On Tuesday, 22 December 2020 at 16:55:40 UTC, Mike Parker wrote:
> On Tuesday, 22 December 2020 at 15:31:06 UTC, Rekel wrote:
>
>>
>> Don't take that as a defence of changing pointer syntax by the
>> way, just noting I think the argument pointers and arrays
>> should be defined using a similar syntax is not consistent
>> when thinking about indexing & dereferencing.
>>
>> Besides, I think '[4]foo* foos;' is quite clear.
>> "array of foo pointers" seems very natural to me.
>
> Ugh. No thanks :-) My brain would short circuit every time I
> see it.
I take it you're not open to considering [4]*foo either?
I feel like there are quite strong argument for it, regarding
readability & (definition vs operator) consistency.😅
More information about the Digitalmars-d-learn
mailing list