homoiconicity

What makes Lisp macros so special?

自古美人都是妖i 提交于 2019-11-26 19:10:44
Reading Paul Graham's essays on programming languages one would think that Lisp macros are the only way to go. As a busy developer, working on other platforms, I have not had the privilege of using Lisp macros. As someone who wants to understand the buzz, please explain what makes this feature so powerful. Please also relate this to something I would understand from the worlds of Python, Java, C# or C development. gte525u To give the short answer, macros are used for defining language syntax extensions to Common Lisp or Domain Specific Languages (DSLs). These languages are embedded right into

What makes Lisp macros so special?

半腔热情 提交于 2019-11-26 06:50:29
问题 Reading Paul Graham\'s essays on programming languages one would think that Lisp macros are the only way to go. As a busy developer, working on other platforms, I have not had the privilege of using Lisp macros. As someone who wants to understand the buzz, please explain what makes this feature so powerful. Please also relate this to something I would understand from the worlds of Python, Java, C# or C development. 回答1: To give the short answer, macros are used for defining language syntax