[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: operations on path lists
From: |
Jean Louis |
Subject: |
Re: [External] : Re: operations on path lists |
Date: |
Wed, 8 Feb 2023 01:39:57 +0300 |
User-agent: |
Mutt/2.2.9+54 (af2080d) (2022-11-21) |
* Emanuel Berg <incal@dataswamp.org> [2023-02-05 16:16]:
> The reader ... you, the writer, should write as good code as
> possible, that will benefit everyone the same way.
OK sure, but where is the definition of "as good code as possible"?
It is opinionated.
Every person, so I expect, strives to write "as good code as
possible".
Let us look at `when' little:
- you place `when' when you need `nil' as last resort
- what if you change your mind in future and wish to modify function
to return "" as last resort? You will need to introduce `if`
function, you have to restructure it. You have to remove `when' and
replace with something else.
- without parenthesis highlighting sometimes it becomes very difficult
to understand what did `if' author intended to say?
- multiple `if' statements one ofter other do not look nice and
readable, and I have to use
- if you use `cond', you remain with `cond', but only change nil to ""
Some people write long functions, if, then, when, it is not nicely
indented, restructuring is difficult, what did author want to say?
Hard to think of it.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
- operations on path lists, Samuel Wales, 2023/02/04
- Re: operations on path lists, Jean Louis, 2023/02/04
- Re: operations on path lists, Emanuel Berg, 2023/02/04
- RE: [External] : Re: operations on path lists, Drew Adams, 2023/02/04
- Re: [External] : Re: operations on path lists, Jean Louis, 2023/02/04
- Re: [External] : Re: operations on path lists, Emanuel Berg, 2023/02/05
- Re: [External] : Re: operations on path lists, Jean Louis, 2023/02/07
- Re: [External] : Re: operations on path lists, Emanuel Berg, 2023/02/07
- Re: [External] : Re: operations on path lists,
Jean Louis <=
- 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, 2023/02/05
- 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