|
|
nemesis <nam### [at] nospam-gmailcom> wrote:
> Errata: read v as vec. :P
Ah, yes, maybe *that's* why I didn't get it?! ;P
> Let's put c and my scheme idiom side-by-side:
>
> ((range 0 9) '() (lambda (i o) (vector-set! vec i (* i i)) o))
> for(int i=0;i++<10;)vec[i]=i*i;
Well, that's (1) not plain C but C++, and (b) obfuscated. Plain, common-style C
would be:
int i; for (i=0;i<10;i++) vec[i]=i*i;
> (for i 0 9 => (@! vec i (* i i)))
>
> Much better. :)
Um... for an obfuscated code contest - yes, I guess so :P
I don't claim the C family of languages to have a less obfuscated syntax - but I
have a feeling that at least the basic concept is much more "digestible" to the
average programmer...
Post a reply to this message
|
|