From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] 2 modules, zsh/db, zsh/gdbm, bug-fixes
Date: Fri, 23 Jun 2017 21:30:51 +0000 [thread overview]
Message-ID: <1498253451.3581506.1019483080.3F968E2D@webmail.messagingengine.com> (raw)
In-Reply-To: <170623013643.ZM7546@torch.brasslantern.com>
Bart Schaefer wrote on Fri, 23 Jun 2017 01:36 -0700:
> Given the bug-fixes in zsh/db/gdbm, this seems worth accepting if the
> license comments are fixed. Other opinions?
There's no documentation. That means I can't know what the patch _does_
unless I reverse engineer the implementation, which I'm ENOTIME for.
I assume the patch adds a zsh/db module that introduces abstractions
that all (existing and future) zsh/db/* modules can share? +1 to the
concept, but again, I haven't reviewed the concrete details.
If (user or dev) documentation needs to be written, I would prefer it
were written _before_ the patch was accepted.
Is it a problem that the module name is a path-wise prefix of another
module's name (zsh/db v. zsh/db/gdbm). Can't think of a particular
problem, but it's unprecedented. [meant as a statement of fact]
There's a ton of vim folding added, {{{ }}}. We don't have it
elsewhere, I assume it's just a scalpel. Likewise with the
whitespace (indentation) changes.
The #if 0 looks alarming. Maybe I missed discussion of it, but I'd be
surprised if the correct response to a bug in some configurations was to
disable the function call in all configurations, without even a version
number check (or, what would be better if it is possible, a runtime
probe for the bug). The comment should link to the bug. In closer
look, this change looks like a functionality change of zsh/db/gdbm
that's unrelated to the addition of zsh/db (and so should be a separate
patch).
db.c has variables declared in the middle of the block. That's a
C99-ism, and while db/gdbm.c does it, the rest of zsh does not. Not
critical.
db.c has a couple of zwarn() that don't state the origin of the error,
I think it'd be useful to make them zwarnnam(name="zsh/db") or so.
Cheers,
Daniel
next prev parent reply other threads:[~2017-06-23 21:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-22 9:04 Sebastian Gniazdowski
2017-06-22 9:05 ` Sebastian Gniazdowski
2017-06-23 9:29 ` Bart Schaefer
2017-06-23 8:36 ` Bart Schaefer
2017-06-23 21:30 ` Daniel Shahaf [this message]
2017-06-24 3:53 ` Bart Schaefer
2017-06-24 4:56 ` Sebastian Gniazdowski
2017-06-25 0:50 ` Daniel Shahaf
2017-06-26 2:40 ` Sebastian Gniazdowski
2017-06-24 17:36 ` Bart Schaefer
2017-06-25 8:06 ` Sebastian Gniazdowski
2017-06-25 11:22 ` Sebastian Gniazdowski
2017-06-25 22:52 ` Bart Schaefer
2017-06-27 5:46 ` Sebastian Gniazdowski
2017-06-27 8:39 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1498253451.3581506.1019483080.3F968E2D@webmail.messagingengine.com \
--to=d.s@daniel.shahaf.name \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).