Search found 9 matches
Search found 9 matches • Page 1 of 1
It sounds like you want to be able to write something like (<-> 45 my-list) where "<->" is some funky character, instead of (push 45 my-list) Is that correct? If so, you can just define another macro or transfer the macro function. ;; Wrapper macro which may provide nicer contextual help in somethin...
- Fri Aug 08, 2008 4:49 am
- Forum: Common Lisp
- Topic: Favorite "underrated" Lisp feature?
- Replies: 13
- Views: 14649
Compiler Macros Interesting. Care to say why? I have never really had an occasion to use a compiler macro. Regular macros, yes, all the time. Compiler macros, never. Compiler macros are one of those things that you don't appreciate until you need them. That's why they are my favourite underrated fe...
- Sun Aug 03, 2008 6:09 am
- Forum: Common Lisp
- Topic: Best program to use lisp on?
- Replies: 17
- Views: 19343
Hi im new to using lisp and need to do some assignments, unfortunately ive not got any software on my computer to do so, Im wondering whats the most user friendly software that i could use. As a beginner ive got some pretty complex code to try get my head around, so any links would be greatly appre...
yes, i know that ... but then there is no huge impact in real programs if you can only optimize literal arguments ? As nikodemus pointed out, there are certainly ways to use them in "real programs", but they can also be used in other interesting ways. In my research, I used compiler macros to speci...
- Sun Jul 20, 2008 4:15 pm
- Forum: Books and Resources
- Topic: What's your favorite book about Lisp?
- Replies: 34
- Views: 60645
I picked The Art of the Metaobject Protocol simply because I learned more about programming from that book than any other I've ever read. I've read most of them (even CLTL2!) and they're all enjoyable. I'd have to pick Norvig's PAIP as my second.
Please correct me if I'm wrong, but I thought that the major difference between "functions" and "methods" -- with respect to Lisp and/or CLOS -- was that for methods, CLOS first looks up the most suitable (specialized) version of a method in regard to the given parameters, whereas this need not be ...