Link Details

Link 199714 thumbnail
User 410289 avatar

By CodeJustin
via cs.brown.edu
Submitted: Jul 05 2009 / 01:20

Lisp programmers have long used macros to extend their language. Indeed, their success has inspired macro notations for a variety of other languages, such as C and Java. There is, however, a paucity of effective pedagogic examples of macro use. This paper presents a short, non-trivial example that implements a construct not already found in mainstream languages. Furthermore, it motivates the need for tail-calls, as opposed to mere tail-recursion, and illustrates how support for tail-call optimization is crucial to support a natural style of macro-based language extension.
  • 4
  • 0
  • 108
  • 6

Comments

Add your comment
User 426965 avatar

reboltutorial replied ago:

0 votes Vote down Vote up Reply

One should read this to understand the core philosophy of Rebol.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (4)



Voters Against This Link (0)