Re: [PATCH 0/6] strbuf cleanups
- From
Elijah Newren <newren@gmail.com>
- Date
- May 7, 2023, 00:14 UTC
- Message-ID
- <CABPp-BGc6ZK919rEH7-fOVg-nYs2wtvFP-XeQ7V9dEBEJvBYsQ@mail.gmail.com>
- In-Reply-To
- <CAFySSZAOqX0pESfJ-7bYg9iR2RDB9PL6sC4Kcvr_zitdQ1kD_g@mail.gmail.com>
On Wed, May 3, 2023 at 11:00 AM Calvin Wan <calvinwan@google.com> wrote:
Show 7 quoted lines
> > While moving strbuf_add_separated_string_list() to a separate file > would mean that strbuf would no longer have a dependency on > string-list, I don't think that dependency is problematic to begin > with. Widening the boundary for strbuf as a string manipulation > library to a string and string list manipulation library seems > reasonable to me.
Oh, the high level idea behind string-list might make sense at this level, but I was assuming Peff would show up at some point and highlight the evils of the current string-list API[1][2][3] and how we should avoid using, depending on, or implementing something that acts like it. :-)
Of course, you're explicitly not trying to make any API or ABI guarantees, so it's certainly fine to shelve or defer such cleanups for later.
[1] https://lore.kernel.org/git/Y7lx1hUpZ7zOP1Lo@coredump.intra.peff.net/ [2] https://lore.kernel.org/git/20180906191203.GA26184@sigill.intra.peff.net/ [3] https://lore.kernel.org/git/20200821200121.GF1165@coredump.intra.peff.net/