3 ms·
In Lisp, my understanding is that while you can manipulate the AST directly, you will likely introduce a bug unless you use the special functions for handling h
by skybrian 9y ago
In Lisp, my understanding is that while you can manipulate the AST directly, you will likely introduce a bug unless you use the special functions for handling hygienic macros? And each flavor of Lisp has its own way of doing hygienic macros.
- flavio81 9y ago>>use the special functions for handling hygienic macros? And each flavor of Lisp has its own way of doing hygienic macros. There are two main flavors of Lisp: Common Lisp and Scheme; Scheme already has hygienic macros as default; and writing hygienic macros is trivial (and easy) in Common Lisp. >you will likely introduce a bug unless You won't "introduce a bug" if what you need is specifically an unhygienic macro. They have their uses, so it's good to be able to write unhygienic macros as well.
- jlg23 9y agoYou have the liberty to write anaphoric macros in CL and with it comes the responsibility not to write them by accident.
- Jtsummers 9y agoYou can use gensym in common lisp to introduce a new symbol that is guaranteed not to exist already. If you do this your macros become hygienic. In my experience this isn't that big a burden. And sometimes you want to access existing symbols through your macros.
- offlineguy 9y agoIf you don’t know what you’re doing, you can introduce bugs regardless of programming language.