help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lisp anime video


From: tomas
Subject: Re: Lisp anime video
Date: Sun, 29 Aug 2021 18:04:20 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Aug 29, 2021 at 05:44:47PM +0200, Emanuel Berg via Users list for the 
GNU Emacs text editor wrote:
> tomas wrote:
> 
> >> Yes, but I wrote that. In the video they show another piece
> >> of code which doesn't work in MIT/GNU Scheme what
> >> I can see.
> >
> > So the difference is (1- n) vs (- n 1)? Why don't you say
> > that, instead of letting people find out? [...] Note: Guile
> > knows about `1-'.
> 
> Here is a screenshot of the code from the video:
> 
>   https://dataswamp.org/~incal/scheme/lisp-maybe.png
> 
> What I can see, it says exactly
> 
> (cond (=1 n)
>   (* n
>      (fac (- n
>              1))
>   n)
> 
> which doesn't work in MIT/GNU Scheme or GNU Guile.

This looks somehow garbled. Cond doesn't work like
that. But I give up for now.

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]