Are there any resources that go have exercises for learning macros and prompts? I've finished HtDP and am working on SICP, but I don't see any place where I can get practice solving problems with (and knowing how to apply) macros and continuations.
Are there any resources that go have exercises for learning macros and prompts? I've finished HtDP and am working on SICP, but I don't see any place where I can get practice solving problems with (and knowing how to apply) macros and continuations.
“The Seasoned Schemer” (ISBN 978-0-262-56100-6) mentioned earlier discusses continuations and their utility in Chapter 13 with many example problems, I doubt this chapter displays their full power however. It seems that the book “The Scheme Programming Language” (ISBN 978-0-262-51298-5) has a chapter on meta-programming with macros with lots of examples but few exercises: https://www.scheme.com/tspl4/syntax.html#./syntax:h0 There is also a book on unhygienic macros in Common Lisp called “Let Over Lambda” (ISBN 978-1-4357-1275-1). Some of the information in this book might be applicable to hygienic macros, although I'm uncertain as I have even less experience with macros than with continuations. Oleg Kiselyov has two very nice web pages on his academic research in both of these areas, some of which involves creating new techniques for the use of these technologies: http://okmij.org/ftp/continuations http://okmij.org/ftp/Scheme/macros.html