* return-it -> ???
@ 2010-01-11 9:51 Thien-Thi Nguyen
2010-01-11 22:05 ` Ludovic Courtès
2010-01-12 19:47 ` Andy Wingo
0 siblings, 2 replies; 8+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-11 9:51 UTC (permalink / raw)
To: guile-user
Guile 1.8 dropped `return-it'.
Does Guile 1.9 have anything to replace it?
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-11 9:51 return-it -> ??? Thien-Thi Nguyen
@ 2010-01-11 22:05 ` Ludovic Courtès
2010-01-12 4:35 ` Thien-Thi Nguyen
2010-01-12 19:47 ` Andy Wingo
1 sibling, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2010-01-11 22:05 UTC (permalink / raw)
To: guile-user
Hi,
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> Guile 1.8 dropped `return-it'.
> Does Guile 1.9 have anything to replace it?
What’s that?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-11 22:05 ` Ludovic Courtès
@ 2010-01-12 4:35 ` Thien-Thi Nguyen
2010-01-12 13:54 ` Andreas Rottmann
0 siblings, 1 reply; 8+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-12 4:35 UTC (permalink / raw)
To: guile-user
() ludo@gnu.org (Ludovic Courtès)
() Mon, 11 Jan 2010 23:05:34 +0100
> Guile 1.8 dropped `return-it'.
> Does Guile 1.9 have anything to replace it?
What’s that?
It is like Common Lisp `prog1'.
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-12 4:35 ` Thien-Thi Nguyen
@ 2010-01-12 13:54 ` Andreas Rottmann
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Rottmann @ 2010-01-12 13:54 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: guile-user
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> () ludo@gnu.org (Ludovic Courtès)
> () Mon, 11 Jan 2010 23:05:34 +0100
>
> > Guile 1.8 dropped `return-it'.
> > Does Guile 1.9 have anything to replace it?
>
> What’s that?
>
> It is like Common Lisp `prog1'.
>
I think in Scheme this is more commonly called `begin0', and at
least PLT and Gauche provide it.
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-11 9:51 return-it -> ??? Thien-Thi Nguyen
2010-01-11 22:05 ` Ludovic Courtès
@ 2010-01-12 19:47 ` Andy Wingo
2010-01-13 7:06 ` Thien-Thi Nguyen
1 sibling, 1 reply; 8+ messages in thread
From: Andy Wingo @ 2010-01-12 19:47 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: guile-user
On Mon 11 Jan 2010 10:51, Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> Guile 1.8 dropped `return-it'.
> Does Guile 1.9 have anything to replace it?
(define return-it
(case-lambda
(() #f)
((x . _) x)))
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-12 19:47 ` Andy Wingo
@ 2010-01-13 7:06 ` Thien-Thi Nguyen
2010-01-13 20:04 ` Andy Wingo
0 siblings, 1 reply; 8+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-13 7:06 UTC (permalink / raw)
To: guile-user
() Andy Wingo <wingo@pobox.com>
() Tue, 12 Jan 2010 20:47:02 +0100
(define return-it
(case-lambda
(() #f)
((x . _) x)))
Is something like this already in Guile?
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-13 7:06 ` Thien-Thi Nguyen
@ 2010-01-13 20:04 ` Andy Wingo
2010-01-13 20:38 ` Thien-Thi Nguyen
0 siblings, 1 reply; 8+ messages in thread
From: Andy Wingo @ 2010-01-13 20:04 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: guile-user
On Wed 13 Jan 2010 08:06, Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> () Andy Wingo <wingo@pobox.com>
> () Tue, 12 Jan 2010 20:47:02 +0100
>
> (define return-it
> (case-lambda
> (() #f)
> ((x . _) x)))
>
> Is something like this already in Guile?
Nope. Probably won't be, either.
I think basically if you want a quick port to 1.9, you should make a
module that shims 1.9 to have a more 1.4-like interface, and have all of
your code use it. `return-it' can go there. Then you can adapt your code
later, if you want, or keep using that shim if you want.
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: return-it -> ???
2010-01-13 20:04 ` Andy Wingo
@ 2010-01-13 20:38 ` Thien-Thi Nguyen
0 siblings, 0 replies; 8+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-13 20:38 UTC (permalink / raw)
To: guile-user
() Andy Wingo <wingo@pobox.com>
() Wed, 13 Jan 2010 21:04:13 +0100
Nope. Probably won't be, either.
OK.
I think basically if you want a quick port to 1.9, you should
make a module that shims 1.9 to have a more 1.4-like interface,
and have all of your code use it. `return-it' can go there.
Then you can adapt your code later, if you want, or keep using
that shim if you want.
Sounds reasonable.
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-01-13 20:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 9:51 return-it -> ??? Thien-Thi Nguyen
2010-01-11 22:05 ` Ludovic Courtès
2010-01-12 4:35 ` Thien-Thi Nguyen
2010-01-12 13:54 ` Andreas Rottmann
2010-01-12 19:47 ` Andy Wingo
2010-01-13 7:06 ` Thien-Thi Nguyen
2010-01-13 20:04 ` Andy Wingo
2010-01-13 20:38 ` Thien-Thi Nguyen
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).