[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: return
From: |
Fren Zeee |
Subject: |
Re: return |
Date: |
Fri, 3 Dec 2010 18:36:06 -0800 |
On Fri, Nov 26, 2010 at 1:19 AM, Tassilo Horn <address@hidden> wrote:
> On Friday 26 November 2010 09:57:21 Lars Magne Ingebrigtsen wrote:
>> Wouldn't it be nice if Emacs Lisp had a workable early-return
>> mechanism?
>
> I guess so. One option you didn't list is using catch/throw:
>
> (defun foo (n)
> (catch 'val
> (dostuff)
> (when zot
> (throw 'val t))))
>
> That's at least not something you need the cl package for.
>
Why not just throw the whole elisp and use CL to run emacs with
lexical scoping ?
What particular advantages do there accrue from the dyn scoped elisp
and by incrementally making fixes to this dinosaur ?
Franz Xe
- Re: return, (continued)
- Re: return, Chong Yidong, 2010/12/03
- Re: return, Chong Yidong, 2010/12/03
- Re: return, Stefan Monnier, 2010/12/03
- Re: return, Chong Yidong, 2010/12/03
- Re: return, Stefan Monnier, 2010/12/03
- Re: return, Chong Yidong, 2010/12/03
- Re: return, Davis Herring, 2010/12/06
- Re: return, Chong Yidong, 2010/12/06
- Re: return, Chong Yidong, 2010/12/03
- Re: return, Helmut Eller, 2010/12/04
Re: return,
Fren Zeee <=
Re: return, Stephen J. Turnbull, 2010/12/04
Re: Return, MON KEY, 2010/12/05