2 ms·
C's preprocessor is such an 'accident'. But eg Rust's macros and template Haskell are very deliberately designed.
by eru 3y ago
C's preprocessor is such an 'accident'. But eg Rust's macros and template Haskell are very deliberately designed.
- medo-bear 3y agoNo. You can say that Common Lisp and Racket are deliberately designed around macros. In Haskell, Rust, C++, they have been bolted on to the language as an after thought. Unless I am mistaken, those languages do not have the ability to write DSLs interactively, unlike Common Lisp.
- eru 3y agoWhat do you mean by 'write DSLs interactively'?