$ for length?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu Feb 20 18:51:21 PST 2014


On Thursday, 20 February 2014 at 10:28:43 UTC, Steve Teale wrote:
> How difficult would it be to allow the '$' to be used instead of
> length in something like:
>
> Thing[] ta;
> for (size_t i = 0; i < ta.$; i++)
>
> It can be used in slices, and indexes, so it might well be
> unambiguous here.

My first reaction is disgust, second is I'd probably get use to 
it, third is wondering if I would actually use it given the 
option (probably not).


More information about the Digitalmars-d mailing list