POV-Ray : Newsgroups : povray.pov4.discussion.general : Next Generation SDL Brainstorming : Re: Next Generation SDL Brainstorming Server Time
28 Sep 2024 18:35:33 EDT (-0400)
  Re: Next Generation SDL Brainstorming  
From: nemesis
Date: 28 Mar 2009 00:06:48
Message: <49cda258@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.