May 21, 2004
In article <c8hcv1$1qth$1@digitaldaemon.com>, J Anderson says... ..
>It seems to me that mixins are just a pre-processor with better rules. Many languages have better preproccessors then C.  Not that I don't like mixins.
>
>-- 
>-Anderson: http://badmama.com.au/~anderson/

Macros are like a box of chocolates: you never know what you're gonna get (when you use an identifier).  You can't name a variable "SWAP" or "MAX", because it is probably defined somewhere, badly.  You need a source code search for every identifier before you really know what the program means.  With mixins, there is a keyword "mixin", saying "i'm pulling in stuff, and you can find what it is by this name".

Plus there are rules for who gets to clobber who, which is the hallmark of any civilized society.

Kevin



May 21, 2004
Kevin Bealer wrote:

>In article <c8hcv1$1qth$1@digitaldaemon.com>, J Anderson says...
>..
>  
>
>>It seems to me that mixins are just a pre-processor with better rules.  Many languages have better preproccessors then C.  Not that I don't like mixins.
>>
>>-- 
>>-Anderson: http://badmama.com.au/~anderson/
>>    
>>
>
>Macros are like a box of chocolates: you never know what you're gonna get (when
>you use an identifier).  You can't name a variable "SWAP" or "MAX", because it
>is probably defined somewhere, badly.  You need a source code search for every
>identifier before you really know what the program means.  With mixins, there is
>a keyword "mixin", saying "i'm pulling in stuff, and you can find what it is by
>this name".
>
>Plus there are rules for who gets to clobber who, which is the hallmark of any
>civilized society.
>
>Kevin
>  
>
True but that is still a comparison with C's pre-processor system not other languages pre-processors.  That is what I'm trying to point out.

-- 
-Anderson: http://badmama.com.au/~anderson/
May 23, 2004
"Kevin Bealer" <Kevin_member@pathlink.com> wrote in message news:c8l83c$9u0$1@digitaldaemon.com...
> Plus there are rules for who gets to clobber who, which is the hallmark of
any
> civilized society.

I like that definition of civilization, I think I'll steal it <g>.


1 2
Next ›   Last »