|
|
clipka wrote:
> nemesis <nam### [at] nospam-gmailcom> wrote:
>> Errata: read v as vec. :P
>
> Ah, yes, maybe *that's* why I didn't get it?! ;P
LOL. ok...
> int i; for (i=0;i<10;i++) vec[i]=i*i;
Excellent. Just beat it. ;P
>> (for i 0 9 => (@! vec i (* i i)))
>>
>> Much better. :)
>
> Um... for an obfuscated code contest - yes, I guess so :P
Hmm, I could be more verbose, but then C folks would pick on it not
being concise.
(for i from 0 to 9 => (vector-set! vec i (* i i)))
Nevertheless, don't you find it amazing to be able to simply churn out
new syntax as you see fit?
> 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...
Frankly, is the above syntax truly hard to figure it out? But yes, C is
digestible simply because of sheer familiarity. It's like Windows.
Post a reply to this message
|
|