"R" suffix for reals

Walter Bright newshound2 at digitalmars.com
Sun May 6 19:18:51 PDT 2012


On 5/6/2012 6:46 PM, Jonathan M Davis wrote:
> I'm sorry, but I think that you're making an issue out of nothing. 1L is
> clearly a long, not a real, and you're going to get compilation errors very
> quickly if you really meant to have a real. Yes, there _are_ cases where you
> could have a silent, logic error, but I really don't think that it's often
> enough to merit changing the language. I do not believe that I have _every_
> seen this problem in real code. And by introducing R, you would create one
> more thing that D programmers would have to learn and know. I don't think that
> the suggested change comes even close to justifying itself.

I agree. It's as old as C, and I've never encountered a problem with it. And as 
Era Scarecrow posted, this leads to suffixes for every type.



More information about the Digitalmars-d mailing list