Re: Paying developers to get features faster
From: Steve Holdoway (steve_at_itemfront.ltd.uk)
Date: 01/23/04
- Next message: Kasper Dupont: "Re: signal delivery"
- Previous message: suresh chandra mannava: "adding new CPU to autoconf/config.sub"
- In reply to: Casper H.S. ***: "Re: Paying developers to get features faster"
- Next in thread: Kasper Dupont: "Re: Paying developers to get features faster"
- Reply: Kasper Dupont: "Re: Paying developers to get features faster"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jan 2004 17:50:59 +1300
On 22 Jan 2004 08:43:58 GMT, Casper H.S. *** <Casper.***@Sun.COM>
wrote:
>Barry Margolin <barmar@alum.mit.edu> writes:
>
>>if (<var> = <expression>) ...
>
>>on the assumption that this is a common typo for:
>
>>if (<var> == <expression>) ...
>
>>Wrapping the assignment in an extra set of parentheses will shut the
>>compiler up, with absolutely no effect on the generated code.
>
>
>It's unclear that the extra parenthesis are a good feature;
>just like:
>
> if (NULL == var)
>
>is really very bad style (wonder when that pesky NULL
>value changes)
>
>
>What is wrong with writing:
>
> if ((<var> = <expression>) != 0)
I wouldn't open a file without this type of syntax! one line, one
operation performed and checked. Easy to understand, too!
>
>instead of:
>
>
> if (<var> = <expression>)
isn't this always true ( I can't think of a time when it isn't off the
top of my head! )?
>or
> if ((<var> = <expression>))
>
>Casper
Steve
- Next message: Kasper Dupont: "Re: signal delivery"
- Previous message: suresh chandra mannava: "adding new CPU to autoconf/config.sub"
- In reply to: Casper H.S. ***: "Re: Paying developers to get features faster"
- Next in thread: Kasper Dupont: "Re: Paying developers to get features faster"
- Reply: Kasper Dupont: "Re: Paying developers to get features faster"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]