unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Massimiliano Gubinelli <m.gubinelli@gmail.com>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: question about values
Date: Wed, 18 Mar 2020 14:11:27 +0100	[thread overview]
Message-ID: <0B85A55D-7199-42C7-BBE7-C949A9664F84@gmail.com> (raw)
In-Reply-To: <2a9592b7-294a-736f-fbbf-d5986a10aa5d@gmail.com>


> On 18. Mar 2020, at 13:39, Matt Wette <matt.wette@gmail.com> wrote:
> 
> 
> How about calling (my-macro/values bar) where my-macro/values expands to
> 
> (call-with-values (lambda () (bar))
>   (lambda args (finalization-code) (apply values args))
> 
> Matt
> 
> 

Yeah! I like this better. But still wraps and unwraps the result.

 Is there any performance penalty in that? 

Apart from my specific user case I wonder how and why in general multiple values are used. Seems they are not well integrated in the current Guile implementation. In my naive opinion the behaviour of Guile 1.8 was more consistent.

Max





  reply	other threads:[~2020-03-18 13:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 23:50 question about values Massimiliano Gubinelli
2020-03-18  6:12 ` Taylan Kammer
2020-03-18  9:55   ` Massimiliano Gubinelli
2020-03-18 11:06     ` Massimiliano Gubinelli
2020-03-18 12:39     ` Matt Wette
2020-03-18 13:11       ` Massimiliano Gubinelli [this message]
2020-03-18 14:06         ` John Cowan
2020-03-18 14:40           ` Massimiliano Gubinelli
2020-03-18 14:48             ` Massimiliano Gubinelli
2020-03-18 15:08               ` tomas
2020-03-18 15:34                 ` Massimiliano Gubinelli

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=0B85A55D-7199-42C7-BBE7-C949A9664F84@gmail.com \
    --to=m.gubinelli@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=matt.wette@gmail.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).