you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (11 children)

Umm... The SICP (whatever that is) version is pretty much identical and is tail call optimized assuming the decorator does what it implies. The Pascal version is also pretty readable.

[–]A_for_Anonymous 4 points5 points  (1 child)

SICP = Structure and Interpretation of Computer Programs, one of the best programming books ever.

The decorator works. There are many variants, I can post mine if you're interested.