Page 1 of 1

define-macro, letex and expand

Posted: Thu Nov 15, 2012 2:27 am
by jopython
define-macro, letex and expand

The examples in the code patterns book don't do any justice to these special forms.
For someone like me who has come from run of the mill languages like Perl/Python these concepts seems to be far away.

Correct me I am wrong. From what I learnt so far, these forms resemble the true power of Lisp. (i.e the ability to extend the language to your problem domain). The docs which I see for newlisp just couples them with the definitions for the rest of the utilitarian functions.

I recommend 'showcasing' these forms seperately. More examples , more patterns and better treatment.

Cheers.

Re: define-macro, letex and expand

Posted: Thu Nov 15, 2012 2:33 pm
by cormullion
Yes, I agree that more examples is always a good thing. Once I had some plans for an advanced book about newLISP, but it never came to pass. There are certainly plenty of forum posts here which explore various aspects of these commands, though.