[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile Assembler
From: |
tomas |
Subject: |
Re: Guile Assembler |
Date: |
Wed, 24 Jun 2015 10:34:20 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----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-----
- Guile Assembler, Sjoerd van Leent, 2015/06/22
- Re: Guile Assembler, Panicz Maciej Godek, 2015/06/22
- Re: Guile Assembler, Nala Ginrut, 2015/06/23
- Re: Guile Assembler, tomas, 2015/06/23
- Re: Guile Assembler, Nala Ginrut, 2015/06/23
- Re: Guile Assembler, tomas, 2015/06/23
- Re: Guile Assembler, Nala Ginrut, 2015/06/23
- Re: Guile Assembler, tomas, 2015/06/23
- Re: Guile Assembler, Panicz Maciej Godek, 2015/06/23
- Re: Guile Assembler,
tomas <=
- Re: Guile Assembler, Panicz Maciej Godek, 2015/06/24
- Re: Guile Assembler, dsmich, 2015/06/24
- Re: Guile Assembler, Panicz Maciej Godek, 2015/06/24
- Re: Guile Assembler, Barry Fishman, 2015/06/23
- Re: Guile Assembler, Panicz Maciej Godek, 2015/06/23
- Re: Guile Assembler, Barry Fishman, 2015/06/23