Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Common Lisp

Name: Anonymous 2013-07-27 11:27

What is the rationale for progn, progv, block, let, flet, let* and return-from being special forms? They all could be simulated with TAGBODY and a few SETQs. C/C++ goes well with just {} being tagbody.

Common Lisp is stupid.

Name: Anonymous 2013-07-27 12:23

>>4
You can implement tagbody using continuations, which themselves could be represented by just lambda. A good enough compiler could optimize continuations back to gotos.

the only other fundamental form, besides lambda, is set!

you can implement set! with just lambda.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List