unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: Andy Wingo <wingo@pobox.com>, guile-devel <guile-devel@gnu.org>
Subject: Re: Guile Assembler
Date: Wed, 24 Jun 2015 10:34:20 +0200	[thread overview]
Message-ID: <20150624083420.GA25584@tuxteam.de> (raw)
In-Reply-To: <CAMFYt2beZyQmfd_ANf3n0gZAcTV3m=F2k-Spk=6KiJmmOGQ2Sg@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jun 23, 2015 at 11:33:06PM +0200, Panicz Maciej Godek wrote:
> >
> > > > Hm. Where's the difference to Guile's define? And why do you have
> > > > double parentheses in your example?

[...]

> Hi,
> sorry to answer that late, but I erroneously sent the previous answer only
> to Nala.

Thanks
 
[...]

> The modification of "define" originates, I believe, from the book
> "Structure and Interpretation of Classical Mechanics" by Gerald Sussman and
> Jack Wisdom [1] [...]

Thanks for the nice explanation. As stated upstream, once Nala hit me over
the head, I saw the light :-)

> curried-definitions) module [2]. The idea is that
> 
> (define ((f x) y)
>   (list x y))
> 
> is equivalent to

I agree that it is a nice extrapolation from (define foo ...) to
(define (foo x) ...).

[...]

> In addition, the module allows me to use the "let" and "let*" forms with
> multiple values:
> 
> (let ((a (b c) (values 1 '(2 3))))
>   (+ a b c))

Any chance to see that in Guile?

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlWKa4wACgkQBcgs9XrR2kaneACeLoC3A0wv+gxEWgzxcVIrTd4C
K4EAn2RalYt5OYidPB6fI/rylblMEVUg
=+mEy
-----END PGP SIGNATURE-----



  reply	other threads:[~2015-06-24  8:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 18:32 Guile Assembler Sjoerd van Leent
2015-06-22 20:49 ` Panicz Maciej Godek
2015-06-23  6:28   ` Nala Ginrut
2015-06-23  9:12     ` tomas
2015-06-23  9:19       ` Nala Ginrut
2015-06-23  9:27         ` tomas
2015-06-23  9:30           ` Nala Ginrut
2015-06-23  9:45             ` tomas
2015-06-23 21:33               ` Panicz Maciej Godek
2015-06-24  8:34                 ` tomas [this message]
2015-06-24  9:44                   ` Panicz Maciej Godek
2015-06-24 11:59                     ` dsmich
2015-06-24 21:54                     ` Panicz Maciej Godek
2015-09-04  0:54                       ` Mark H Weaver
2015-09-04  9:31                         ` Panicz Maciej Godek
2015-09-04 16:58                           ` Mark H Weaver
2015-06-23 12:54         ` Barry Fishman
2015-06-23 21:00           ` Panicz Maciej Godek
2015-06-24  2:18             ` Barry Fishman

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=20150624083420.GA25584@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=godek.maciek@gmail.com \
    --cc=guile-devel@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).