unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Why is an empty lambda body not allowed?
@ 2014-07-04 18:20 Tobias Brandt
  2014-07-04 18:44 ` Taylan Ulrich Bayirli/Kammer
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Brandt @ 2014-07-04 18:20 UTC (permalink / raw)
  To: guile-user@gnu.org

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

Hi,

it seems to be illegal to write
    (lambda ())

I would have expected this to evaluate to a procedure returning unspecified.

On the other hand, the following are all valid
    (begin)
    (define x (begin))
    (lambda () x)

but
    (lambda () (begin))

is not.

Why is that?


Cheers,
Tobias

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-04 22:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04 18:20 Why is an empty lambda body not allowed? Tobias Brandt
2014-07-04 18:44 ` Taylan Ulrich Bayirli/Kammer
2014-07-04 19:14   ` Tobias Brandt
2014-07-04 22:01     ` Taylan Ulrich Bayirli/Kammer

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).