My new favorite D feature

Bill Baxter wbaxter at gmail.com
Fri Dec 22 20:24:55 PST 2006


Steve Horne wrote:
> On Thu, 21 Dec 2006 23:39:39 -0600, Tim Keating
> <holyspamster at gmail.com> wrote:
> 
> 
>>In article <emeln6$25q3$1 at digitaldaemon.com>, BCS at pathlink.com says...
>>
>>>Bob W wrote:
>>>No joke. I think He's saying he likes that feature.
>>>
>>>Just read it literally
>>
>>Yup. I complicated the example by using '=' instead of '==', which, as 
>>has been pointed out, is another way that D helps you avoid shooting 
>>yourself in the foot.
> 
> 
> Yeah, but I'm not quite so keen. I like being able to use assignments
> within expressions (in moderation, of course).
> 
> Personally, I think there are two sane options for programming
> languages...

What's so bad about  if((a=b)!=0)  ?
--bb



More information about the Digitalmars-d mailing list