* [bug #25519] Double currying does not work
@ 2009-02-08 23:30 anonymous
2009-02-09 16:44 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: anonymous @ 2009-02-08 23:30 UTC (permalink / raw)
To: bug-guile
URL:
<http://savannah.gnu.org/bugs/?25519>
Summary: Double currying does not work
Project: Guile
Submitted by: None
Submitted on: Sun 08 Feb 2009 11:30:56 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The following does not work, but should:
(define ((f x) y) (+ x y))
((f 2) 3)
(the definition gives an invalid syntax error).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug #25519] Double currying does not work
2009-02-08 23:30 [bug #25519] Double currying does not work anonymous
@ 2009-02-09 16:44 ` Ludovic Courtès
2009-02-09 19:55 ` Neil Jerram
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2009-02-09 16:44 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
Update of bug #25519 (project guile):
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
No, it shouldn't work, according to R5RS Section 7.1.6 "Programs and
definitions", where the formal syntax of a definition is specified as:
<definition> -> (define <variable> <expression>)
| (define (<variable> <def formals>) <body>)
| (begin <definition>*)
Thanks,
Ludo'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug #25519] Double currying does not work
2009-02-09 16:44 ` Ludovic Courtès
@ 2009-02-09 19:55 ` Neil Jerram
2009-02-09 20:17 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Neil Jerram @ 2009-02-09 19:55 UTC (permalink / raw)
To: Ludovic Courtès, Neil Jerram, bug-guile
Follow-up Comment #2, bug #25519 (project guile):
I'm not sure that's right. Currying is a well known and unambiguous
extension to the R5RS syntax, and I believe that Guile has supported it for
ages. There are lots of mentions in the manual, and we have tests for it in
test-suite/tests/syntax.test.
So I think something more specific has gone wrong here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug #25519] Double currying does not work
2009-02-09 19:55 ` Neil Jerram
@ 2009-02-09 20:17 ` Ludovic Courtès
2010-04-08 21:59 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2009-02-09 20:17 UTC (permalink / raw)
To: Ludovic Courtès, Neil Jerram, bug-guile
Update of bug #25519 (project guile):
Open/Closed: Closed => Open
_______________________________________________________
Follow-up Comment #3:
Hmm, you're right. The only mention of this behavior in the manual is in the
"define* Reference" node, so I guess the manual will need to be improved as
well.
(Reopening the bug.)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug #25519] Double currying does not work
2009-02-09 20:17 ` Ludovic Courtès
@ 2010-04-08 21:59 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2010-04-08 21:59 UTC (permalink / raw)
To: Ludovic Courtès, Neil Jerram, bug-guile
Update of bug #25519 (project guile):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #4:
Fixed in 1.9.10 in (ice-9 curried-definitions).
http://git.savannah.gnu.org/cgit/guile.git/commit/?id=9225df3c551c9b28cf16f5c4aab8cf1183f44577
Ludo'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-08 21:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08 23:30 [bug #25519] Double currying does not work anonymous
2009-02-09 16:44 ` Ludovic Courtès
2009-02-09 19:55 ` Neil Jerram
2009-02-09 20:17 ` Ludovic Courtès
2010-04-08 21:59 ` Ludovic Courtès
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).