Re: rfc (define-module ... #:use-modules ...)

2007-10-06 Thread Thien-Thi Nguyen
() Keith Wright <[EMAIL PROTECTED]>
() Fri, 5 Oct 2007 19:47:50 -0400

   It would be heartening to read that the maintainer
   of the fork wants to build toward the other branch
   were it not for the cynical suspicion that that
   "harmonize" is like "bi-pertisan"; it means everyone
   should do it my way, even if they fundamentally
   disagree with me.

for me, it means everyone interested should say what they would
(or would not) do and then if there is concensus (after some
refinement), i follow.  if there is no concensus, i muddle
through the best i can (as always).  from the sound of the
responses thus far, this is the most likely outcome.

   If you want to harmonize, maybe both branches could
   think about implementing R6RS library forms.

the library body is specified to be included in the `library'
form.  OTOH, `define-module' is a peer top-level form to the
library body.  how would you reconcile these approaches?

thi


___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


Re: rfc (define-module ... #:use-modules ...)

2007-10-06 Thread Keith Wright
> From: Thien-Thi Nguyen <[EMAIL PROTECTED]>
> 
> for me, it means everyone interested should say what they would
> (or would not) do and then if there is concensus (after some
> refinement), i follow.  if there is no concensus, i muddle
> through the best i can (as always).  from the sound of the
> responses thus far, this is the most likely outcome.

Consensus - same sense or feeling (<-Latin sentire)
Concensus - if that were a word,
it might mean same head-count

Anyway carry on.  Or muddle on.  My opinion means
little with no code to back it up, and I have none.

>If you want to harmonize, maybe both branches could
>think about implementing R6RS library forms.
> 
> the library body is specified to be included in the `library'
> form.  OTOH, `define-module' is a peer top-level form to the
> library body.  how would you reconcile these approaches?

I don't want to rudely inject my opinion, but if
you keep asking quesions it would be rude not to
answer.

I am not totally sure I understand the question.

Are you worried about the systactic difference
between

  (define-module blah blah)
  (def xx)
  (xx xx xx)
  

versus

  (library blah blah
(def xx)
(xx xx xx) )

?

The later (with parentheses on both sides)
seems more lispy to me, but it seems like a
pretty trivial change of syntax.  It would
be more interesting to learn about the deep
magick hidden in the blah blah.

I would leave modules alone for backward
compatibility, and try to add something
with the (library ...) syntax but with an
underlying semantics as much as possible
like the current module system.

Then I would write a paper or manifesto
on the exact reasons why libraries and
modules are too different to be inter-
changeable.

At least, that is how I would reconcile the
two approaches if I were even to begin
reconciliation.  In the real world, I
will type my pipe dream to the mailling
list and then go to bed and not care about
it in the morning.

  -- Keith



___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user