[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: operations on path lists
From: |
Emanuel Berg |
Subject: |
Re: operations on path lists |
Date: |
Sat, 04 Feb 2023 22:41:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Jean Louis wrote:
>>> (cond ((file-directory-p file) (expand-file-name file))
>>> (t nil))
>>
>> (when (file-directory-p file)
>> (expand-file-name file) )
>
> I am aware of it, I prefer using `cond' as I get
> more clarity.
The (t nil) part is of no use, even if you stick to `cond'.
"If no clause succeeds, cond returns nil."
And: one COND, one branch or BODY - in idiomatic Lisp, that's
`when'.
--
underground experts united
https://dataswamp.org/~incal
- Re: [External] : Re: operations on path lists, (continued)
- Re: [External] : Re: operations on path lists, Jean Louis, 2023/02/07
- RE: [External] : Re: operations on path lists, Drew Adams, 2023/02/07
- RE: [External] : Re: operations on path lists, Drew Adams, 2023/02/08
- Re: [External] : Re: operations on path lists, Jean Louis, 2023/02/08
- Re: operations on path lists, Jean Louis, 2023/02/04
- Re: operations on path lists, Samuel Wales, 2023/02/04
- Re: operations on path lists, Samuel Wales, 2023/02/04
- Re: operations on path lists,
Emanuel Berg <=
- Re: operations on path lists, Jean Louis, 2023/02/07
- Re: operations on path lists, Emanuel Berg, 2023/02/07
- RE: [External] : Re: operations on path lists, Drew Adams, 2023/02/07
- RE: [External] : Re: operations on path lists, Drew Adams, 2023/02/07
Re: operations on path lists, Emanuel Berg, 2023/02/05
Re: operations on path lists, James Thomas, 2023/02/11
Re: operations on path lists, Ruijie Yu, 2023/02/11