Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Fine day for friends. So-so day for you.


comp / comp.lang.lisp / Re: Thanks everyone

SubjectAuthor
o Re: Thanks everyoneB. Pym

1
Subject: Re: Thanks everyone
From: B. Pym
Newsgroups: comp.lang.lisp, comp.lang.scheme
Organization: A noiseless patient Spider
Date: Fri, 4 Oct 2024 01:47 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Nobody447095@here-nor-there.org (B. Pym)
Newsgroups: comp.lang.lisp,comp.lang.scheme
Subject: Re: Thanks everyone
Date: Fri, 4 Oct 2024 01:47:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <vdnhfj$3ur0t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Fri, 04 Oct 2024 03:47:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cdfba79aa9a9f55ca343c5b20e949eff";
logging-data="4156445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZWJgPGzejJSQBA4cWU4DU"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:cTK0ZCctvhkNBRHuL5qPU3PUY3o=
View all headers

Kenny Tilton wrote:

> > Also, I get tired of always writing backwards. A unix pipe sequence of
> > operations A | B | C is written in the order of execution (do A, send
> > the result to B, then send that to C and output). In Lisp it's
> >
> > (C (B (A foo))). So to do ABC to foo I have to write CBA foo with lots
> > of parentheses. Annoying.
>
> But that is a boring example, because it could just as well be:
>
> (let (temp)
> (setf temp (a foo))
> (setf temp (b temp))
> (c temp))

"just as well" ????

He calls that egregious prolixity "just as well"????

I don't believe that he has an honest bone in his body.

He makes a perfect disciple of CL.

>
> What if A, B and C take multiple inputs? asta la vista pipe, and:

No.

Wrong.

Gauche Scheme:

(use srfi-197)

(chain (div-and-mod 26 9) (lrange _ _) (map square _))
===>
(4 9 16 25 36 49)

(chain (div-and-mod 26 9) (lrange _ _) (map square _)
(apply values _) (+ _ ...))
===>
139

> Or you can do:
>
> (c (b (a foo 'up)
> 'down)) ;; linebreak overkill?
>
> ...and it reads like a book. Besides, i think, read, and design
> top-down, not bottom up, even in COBOL.

A disciple of COBOL makes a perfect disciple of CL.

1

rocksolid light 0.9.8
clearnet tor