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

LISP macros in practice

Name: Anonymous 2011-10-23 13:57

A few years of hobbyist cudding and I've yet to find much use for them outside making of generic special loops, of which every permutation of them have been implemented already by library contributors. LISPs aren't shit so boilerplate code doesn't happen, everything else can be made more tidy with lambdas. Has anyone used LISP's most marketable feature (hygienic or not) for anything at the app level?

Name: Anonymous 2011-10-23 15:26

>>15

Yeah, one example of something you can get with macros that you can't get with inlined functions is dynamic scope, since the macro can directly manipulate local variables that happen to be defined in the function invoking the macro. I'm not saying this as a good thing to do in general though.

Another thing is that you have the option of deciding when to evaluate the arguments, or to evaluate them multiple times. You can also make your own parser in lisp and transform the arguments syntactically before evaluating them.

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