unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Brandon Invergo <brandon@invergo.net>
Cc: guile-user@gnu.org
Subject: Re: [ANN] guile-file-names 0.2
Date: Thu, 16 May 2019 16:01:26 -0400	[thread overview]
Message-ID: <87y336b232.fsf@netris.org> (raw)
In-Reply-To: <87a7fmkbtv.fsf@invergo.net> (Brandon Invergo's message of "Thu,  16 May 2019 10:06:36 +0100")

Hi Brandon,

Brandon Invergo <brandon@invergo.net> writes:

> I'm happy to announce the release of guile-file-names 0.2.
>
> The (file-names) module provides methods for manipulating file names.
> Its design distinguishes between the human-friendly string format of
> filenames ("/usr/bin/guile") and a more Scheme-friendly representation
> to take out all the little nuisances of working with file names.
>
> This release sees bugs fixed, under-the-hood improvements, and new
> features added.  See below for an excerpt from the NEWS file.

I see that you are using 'set!' to mutate several core bindings in the
(guile) module to much slower GOOPS generic functions.  For example, you
'set!' the core 'append' procedure to a GOOPS generic function that adds
support for appending together your <file-name> objects.

If you must override core procedures, then please use #:export and
#:replace in the 'define-module' form, and simply 'define' the new
binding in your module instead of using 'set!'.  That way, the bindings
in (guile) will be left unchanged, and your new bindings will only be
used in modules that import your module.

I can understand your decision to overload Guile's primitives that
accept file names.  However, I disagree with your decision to overload
'append' and 'append!'.  Those are not intended to be generic functions
in Scheme.  If they were, we wouldn't have 'string-append' and
'symbol-append'.

     Regards,
       Mark



  reply	other threads:[~2019-05-16 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-16  9:06 [ANN] guile-file-names 0.2 Brandon Invergo
2019-05-16 20:01 ` Mark H Weaver [this message]
2019-05-16 20:06   ` Mark H Weaver
2019-05-17  8:36     ` Brandon Invergo
2019-05-22 22:03   ` exporting GOOPS generic functions, was: " Brandon Invergo
2019-05-25  1:21     ` Mark H Weaver
2019-05-25  2:14       ` Mark H Weaver

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y336b232.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=brandon@invergo.net \
    --cc=guile-user@gnu.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).