[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the line length limit in the Emacs codebase?
From: |
Michael Albinus |
Subject: |
Re: What's the line length limit in the Emacs codebase? |
Date: |
Sat, 26 Dec 2020 12:22:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Yuri Khan <yuri.v.khan@gmail.com> writes:
Hi Yuri,
>> In Lisp code, I break such long strings into substrings, wrapped by concat.
>> Just for the better readability with 80 columns.
>
> I’m used to doing the same, but some coding style guides present a
> good reason to avoid doing that[1]:
>
> 6.2: Strings that cause the line to go over 100 characters
> should not be written across multiple lines using string concatenation.
>
> > Why? Broken strings are painful to work with
> > and make code less searchable.
>
> [1]: https://github.com/airbnb/javascript#strings--line-length
>
> I have actually found myself trying to grep for an error message ang
> failing to find it in code at first try because it was line-broken at
> a non-obvious point.
Yes, it is always a trade-off. However, I'm failing to find error
messages in the code much more often because they are produced by
format, which could be banned for the same reason.
Best regards, Michael.
- Re: What's the line length limit in the Emacs codebase?, (continued)
- Re: What's the line length limit in the Emacs codebase?, Stefan Monnier, 2020/12/23
- Re: What's the line length limit in the Emacs codebase?, Philipp Stephani, 2020/12/25
- Re: What's the line length limit in the Emacs codebase?, Stefan Monnier, 2020/12/25
- Re: What's the line length limit in the Emacs codebase?, Philipp Stephani, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?, Stefan Monnier, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?, tomas, 2020/12/25
- Re: What's the line length limit in the Emacs codebase?, Michael Albinus, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?, Yuri Khan, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?,
Michael Albinus <=
- Re: What's the line length limit in the Emacs codebase?, Yuri Khan, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?, tomas, 2020/12/26
- RE: What's the line length limit in the Emacs codebase?, Drew Adams, 2020/12/26
- Re: What's the line length limit in the Emacs codebase?, Philipp Stephani, 2020/12/26
Re: What's the line length limit in the Emacs codebase?, Philipp Stephani, 2020/12/25
Re: What's the line length limit in the Emacs codebase?, Richard Stallman, 2020/12/26
Re: What's the line length limit in the Emacs codebase?, Philipp Stephani, 2020/12/26