[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opaque objects and Emacs documentation
From: |
Tomas Hlavaty |
Subject: |
Re: Opaque objects and Emacs documentation |
Date: |
Tue, 21 Jul 2020 22:49:33 +0200 |
On Tue 21 Jul 2020 at 22:00, Dmitry Gutov <dgutov@yandex.ru> wrote:
> On 19.07.2020 17:48, Eli Zaretskii wrote:
>> . a predicate to test whether an arbitrary Lisp value is an object
>> of that type
>
> A predicate would look like:
>
> (defun project-instance-p (pr)
> (condition-case nil
> (progn
> (project-roots pr)
> t)
> (error
> nil)))
that's ugly
it's better not to use errors for control flow
what happens if project-roots raises error on legitimate project
instance?
- Re: Opaque objects and Emacs documentation, (continued)
- Re: Opaque objects and Emacs documentation, Richard Stallman, 2020/07/17
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/18
- Re: Opaque objects and Emacs documentation, Richard Stallman, 2020/07/18
- Re: Opaque objects and Emacs documentation, Eli Zaretskii, 2020/07/19
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Eli Zaretskii, 2020/07/21
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Tomas Hlavaty, 2020/07/21
- Re: Opaque objects and Emacs documentation,
Tomas Hlavaty <=
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Tomas Hlavaty, 2020/07/21
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Eli Zaretskii, 2020/07/21
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, John Yates, 2020/07/21
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/21
- Re: Opaque objects and Emacs documentation, Eli Zaretskii, 2020/07/22
- Re: Opaque objects and Emacs documentation, Dmitry Gutov, 2020/07/19