My $0.02...

I like:

var1 = ( var2 = var3 );

and I hate:

var1 = var2 = var3;

I think the first version makes it much clearer that var1 is set to the
value of an expression, whereas the second version could be taken
(incorrectly) to mean that var1 and var2 both take the value of var3.

Also, to 'toggle indicators, I use this a lot:

Ind = ( Ind = *off );

Rory

On 12/13/06, AGlauser@xxxxxxxxxxxx <AGlauser@xxxxxxxxxxxx> wrote:

Do people like or dislike this type of code:

/free
var1 = (var2 = value);

namedIndicator = (var1 = var2);

/end-free

Thanks in advance for any opinions,
Adam

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.