POV-Ray : Newsgroups : povray.pov4.discussion.general : Next Generation SDL Brainstorming : Re: Next Generation SDL Brainstorming Server Time
28 Sep 2024 18:40:31 EDT (-0400)
  Re: Next Generation SDL Brainstorming  
From: clipka
Date: 27 Mar 2009 21:40:00
Message: <web.49cd7f03ad594047208afb30@news.povray.org>
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

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