From: Neil Jerram <neil@ossau.uklinux.net>
To: Andy Wingo <wingo@pobox.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: Reporting possibly unbound variables
Date: Mon, 19 Oct 2009 22:23:32 +0100 [thread overview]
Message-ID: <87oco3krhn.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <m3pr8jqkk3.fsf@pobox.com> (Andy Wingo's message of "Mon, 19 Oct 2009 20:56:44 +0200")
Andy Wingo <wingo@pobox.com> writes:
> On Wed 07 Oct 2009 22:27, Neil Jerram <neil@ossau.uklinux.net> writes:
>
>> On a loosely related point, I notice that we have deprecated eval-case
>> in 1.9.x, in favour of eval-when. But 1.8.x only has eval-case; so
>> isn't the deprecation going to make it more difficult to handle code
>> that has to be different in 1.8.x and 1.9/2.0?
>
> Perhaps, though if you are updating already to 2.0, I would just make a
> 2.0 compatibility library, as far as possible.
Yes, you're right. I think I was a bit confused when I wrote the above,
thinking that eval-case/eval-when was something like cond-expand. In
fact Ludovic's suggestion for (cond-expand (guile-2) ...) will be
enough.
> In macros you could do the @/@@ trick.
>
>> (For example, 1.8.x requires the comma trick in a macro definition that
>> uses a non-exported procedure from the same module, whereas 1.9/2.0
>> requires not using a comma.)
>
> See NEWS line 282 :)
Nice entry!
> And add something or propose new behavior, as appropriate.
I don't think we need anything else. People can use @@ if they want
code that works in both 1.8.x and 2.0, or cond-expand for different
versions.
>> Alternatively, should we add a suitable eval-when to the next 1.8.x
>> release, to help with this?
>
> I think that would be a good idea, yes.
As Ludovic said, that would only help 1.8.8 and onwards. I think it
would be better to add this to a compatibility library, as and when it's
needed.
Neil
prev parent reply other threads:[~2009-10-19 21:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 22:21 Reporting possibly unbound variables Ludovic Courtès
2009-10-07 20:27 ` Neil Jerram
2009-10-07 21:53 ` Ludovic Courtès
2009-10-19 18:58 ` Andy Wingo
2009-10-20 8:08 ` Ludovic Courtès
2009-10-20 18:42 ` Andy Wingo
2009-10-21 11:59 ` eval-case Ludovic Courtès
2009-10-21 18:06 ` eval-case Andy Wingo
2009-10-19 18:56 ` Reporting possibly unbound variables Andy Wingo
2009-10-19 21:23 ` Neil Jerram [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=87oco3krhn.fsf@ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=wingo@pobox.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).