size_t index=-1;
Ola Fosheim Grøstad via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 19 02:59:46 PDT 2016
On Saturday, 19 March 2016 at 09:35:00 UTC, tsbockman wrote:
> Both of the literals I used in my example explicitly indicate
> the type, not just the value.
Yes, but few people specify unsigned literals and relies on them
being implicitly cast to unsigned. You don't want to type 0UL and
1UL all the time. This is a another thing that Go does better,
numeric literals ought to not be bound to a concrete type. So
while I agree with you that the integer situation is messy,
changing it to something better requires many changes. Which I am
all for.
More information about the Digitalmars-d-learn
mailing list