guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is an empty lambda body not allowed?


From: Tobias Brandt
Subject: Why is an empty lambda body not allowed?
Date: Fri, 4 Jul 2014 20:20:31 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]