[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is there no `until' in elisp?
From: |
Garreau\, Alexandre |
Subject: |
Re: Why is there no `until' in elisp? |
Date: |
Wed, 17 Oct 2018 18:51:52 +0200 |
User-agent: |
Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu) |
Le 17/10/2018 à 11h06, Stefan Monnier a écrit :
>> No, `while' currently returns its last body, I just checked:
>> (let ((x 0)) (while (< x 5) (setq x (+ 1 x))) 8))
>
> The 8 in your test case is outside of `while`, so it just shows what
> `let` returns, not what `while` returns. Try
>
> (let ((x 0)) (while (< x 5) (setq x (+ 1 x))))
> or
> (let ((x 0)) (while (< x 5) (setq x (+ 1 x)) 8))
My bad! yours lack a closing paren, but yes indeed you are right!
Re: Why is there no `until' in elisp?, Yuri Khan, 2018/10/17
- Re: Why is there no `until' in elisp?, Garreau\, Alexandre, 2018/10/17
- Re: Why is there no `until' in elisp?, Yuri Khan, 2018/10/17
- Re: Why is there no `until' in elisp?, Garreau\, Alexandre, 2018/10/17
- Re: Why is there no `until' in elisp?, Paul Eggert, 2018/10/17
- Re: Why is there no `until' in elisp?, Garreau\, Alexandre, 2018/10/17
- Re: Why is there no `until' in elisp?, Paul Eggert, 2018/10/17
- Re: Why is there no `until' in elisp?, Garreau\, Alexandre, 2018/10/17