unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich B.)
To: guile-devel@gnu.org
Subject: Re: [PATCH] Replace define-macro with syntax-rules
Date: Mon, 30 Sep 2013 21:24:27 +0200	[thread overview]
Message-ID: <87ioxigljo.fsf@taylan.uni.cx> (raw)
In-Reply-To: <87eh87bbyt.fsf@Kagami.home> (Ian Price's message of "Sun, 29 Sep 2013 21:38:02 +0100")

Ian Price <ianprice90@googlemail.com> writes:

> taylanbayirli@gmail.com (Taylan Ulrich B.) writes:
>
>> (define-syntax endianness
>>   (syntax-rules ()
>>     ((_ big) 'big)
>>     ((_ little) 'little)))
> Except now whenever you use it, you only ever get big endianness. You
> forgot to add big and little to the literals list.

Doh!  Can't believe I made such a mistake, must write more Scheme. :)

Well, actually, it will still coincidentally work because the `big' in
`'big' (`(quote big)') will refer to the pattern variable.  (Essentially
we made an alias to `quote'.)



      reply	other threads:[~2013-09-30 19:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-28  5:25 [PATCH] Replace define-macro with syntax-rules KAction
2013-09-28 10:27 ` Taylan Ulrich B.
2013-09-29 20:38   ` Ian Price
2013-09-30 19:24     ` Taylan Ulrich B. [this message]

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=87ioxigljo.fsf@taylan.uni.cx \
    --to=taylanbayirli@gmail.com \
    --cc=guile-devel@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).