Am Wed, 19 Nov 2014 10:42:30 +0000
schrieb "Kagamin" <[email protected]>:

> On Tuesday, 18 November 2014 at 18:23:52 UTC, Marco Leise wrote:
> > Aside from the size factor, I personally prefer unsigned types
> > for countable stuff like array lengths. Mixed arithmetics
> > decay to unsinged anyways and you don't need checks like
> > `assert(idx >= 0)`.
> 
> Failing assert(-1 < arr.length) make little sense though, -1 
> can't be bigger than a non-negative number.

It makes little sense, right.

-- 
Marco

Reply via email to