This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Unwanted hook names (was Re: interface reductions)
- To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: Unwanted hook names (was Re: interface reductions)
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 26 May 2000 13:00:09 +0200
- Cc: "Greg J. Badros" <gjb at cs dot washington dot edu>, Michael Livshin <mlivshin at bigfoot dot com>, Miroslav Silovic <silovic at zesoi dot fer dot hr>, Guile Mailing List <guile at sourceware dot cygnus dot com>, djurfeldt at nada dot kth dot se
- Cc: djurfeldt at nada dot kth dot se
- References: <Pine.LNX.4.21.0005261208330.7713-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> Since the implementation of scm_create_hook is easy with object
> properties, I think it can be accepted that an application which likes
> this for convenience reasons can provide such a thing for itself. There's
> no need to put this in libguile.
Hooks are important and common enough that it should be easy to create
them from the application. Thus, scm_create_hook is a service
libguile should provide, in my view. It should abstract the actions of
1. creating the hook
2. giving it a name
3. creating a Scheme level binding for it
Because of 3, the interface may have to change when the environments
and module system is introduced because of the question: In which
module should the binding be created?