Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why (begin) is the problem?

2 views
Skip to first unread message

Majorinc Kazimir

unread,
Apr 4, 2008, 7:42:59 AM4/4/08
to

In few Schemes, including PLT expression (begin) works well,
but expressions like

(if #t (begin))

and similar do not. Why? Is it wrong?


Abdulaziz Ghuloum

unread,
Apr 4, 2008, 7:57:48 AM4/4/08
to

(begin) is not a valid expression, but it is a valid definition.
So, you can usually type it at the repl and you can have it in
internal definition context like in (lambda () (begin) 42), but
it can't be an expression.

Aziz,,,

0 new messages