Lisp Macros: A practical approach
On my way to learn Lisp I have discovered the all powerful and feared so called Macros, then after spending a hard time trying to understand them and their usefulness I said to myself, I FINALLY GOT IT.
I couldn’t be more wrong, I was thinking that the only purpose of Macros was to define new control structures and that was all I needed to know until I start reading more and more on the subject and a whole new world has comes to me !
Why does the C library use macros and functions with same name?
I am reading ‘The Standard C Library’ by PJ Plauger which is really interesting. The book explains not only how to USE the library but also how it is implemented.
Is there a way to compare and record changes to code without VCS?
I’m working for a client that has no version control system in place. I want to record changes to code without having to add all changes to a spreadsheet. I’m restricted to using Notepad++ so would a plugin or macro for this be another option?
Programming languages with a Lisp-like syntax extension mechanism [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Besides macros, are there any other metaprogramming techniques? [duplicate]
Possible Duplicate:
Programming languages with a Lisp-like syntax extension mechanism
Byte code weaving vs Lisp macros
I have been reading about the libraries people have written for languages like Java and C# that make use of byte code weaving to do things like intercept function calls, insert logging code, etc. I have also been reading up on Lisp/Clojure macros in an attempt to better understand how to utilize them. The more I read about macros, the more it seems like they provide the same kind of functionality as byte code weaving libraries. By functionality, I mean the ability to manipulate code at compile time.
Why can’t we declare ‘extern C’ for C++ macro’s?
I am new to C/C++. Wanted to know why we cannot declare ‘extern C’ for C++ macro’s similar to methods/functions…which will allow macro’s defined in C++ file to be accessed in .c files.
When would I require a Macro instead of a function?
I am new to Clojure, I am new to Macros and I have no prior background in Lisp.
I went on to create my own switch case like form and ended up with this:
When would I require a Macro instead of a function?
I am new to Clojure, I am new to Macros and I have no prior background in Lisp.
I went on to create my own switch case like form and ended up with this:
When would I require a Macro instead of a function?
I am new to Clojure, I am new to Macros and I have no prior background in Lisp.
I went on to create my own switch case like form and ended up with this: