unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Ian Price <ianprice90@googlemail.com>
Cc: Guile Mailing List <guile-devel@gnu.org>
Subject: Re: Syntax Parameters documentation for guile
Date: Sun, 08 Jan 2012 14:47:39 +0100	[thread overview]
Message-ID: <87boqee26c.fsf@pobox.com> (raw)
In-Reply-To: <87ipkmlxyd.fsf@Kagami.home> (Ian Price's message of "Sun, 08 Jan 2012 02:39:22 +0000")

On Sun 08 Jan 2012 03:39, Ian Price <ianprice90@googlemail.com> writes:

> From b7d764179d5546698617993e5a648d6c1393b5c0 Mon Sep 17 00:00:00 2001
> From: Ian Price <ianprice90@googlemail.com>
> Date: Sat, 7 Jan 2012 01:59:33 +0000
> Subject: [PATCH] document syntax parameters
>
> * doc/ref/api-macros.texi (Macros): Add subsection for "Syntax Parameters"

Applied, thanks!

I committed some additional edits.  I wanted to point them out to you,
as you might be interested in the tao of texinfo:

> +definition within the dynamic extent of a macro expansion. It provides

We use two spaces after periods in the Guile manual.

> +a convenient solution to one of the most common types of unhygienic
> +macro: those that introduce a unhygienic binding each time the macro
> +is used. Examples include a @code{lambda} form with a @code{return} keyword, or
> +class macros that introduce a special @code{self} binding.

And, we try to keep things wrapped to 72 columns.  M-q in emacs will
refill a paragraph for you.

> +With syntax parameters, instead of introducing the binding
> +unhygienically each time, we instead create one binding for the
> +keyword, which we can then adjust later when we want the keyword to
> +have a different meaning. As no new bindings are introduced, hygiene
> +is preserved. This is similar to the dynamic binding mechanisms we
> +have at run-time like @ref{SRFI-39, parameters} or
> +@ref{Fluids and Dynamic States, fluids}, except that the dynamic

@ref in mid-sentence doesn't look very nice in print output:

  http://www.gnu.org/savannah-checkouts/gnu/texinfo/manual/texinfo/html_node/ref.html#ref

I changed this to be (@pxref{...}).

> +          ;; in the body we adjust the 'return' keyword so that calls
> +          ;; to 'return' are replaced with calls to the escape continuation

Unless it's an inline comment, it's best to make whole sentences.

Lovely example, by the way.  Thanks for the docs!

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2012-01-08 13:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-23 15:46 Syntax Parameters documentation for guile Ian Price
2011-12-31  7:44 ` Eli Barzilay
2012-01-03 23:04   ` Ian Price
2012-01-04  0:33     ` Eli Barzilay
2012-01-06 18:47       ` Andy Wingo
2012-01-07  2:05         ` Ian Price
2012-01-07 17:37           ` Ian Price
2012-01-08  0:06             ` Andy Wingo
2012-01-08  2:39               ` Ian Price
2012-01-08 13:47                 ` Andy Wingo [this message]
2012-01-07  2:30         ` Eli Barzilay

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=87boqee26c.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ianprice90@googlemail.com \
    /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).