Re:Designing a Language Without a Parser
by eru on Wednesday July 05, 2023 @05:25AM
(#36597868)
C's preprocessor is such an 'accident'. But eg Rust's macros and template Haskell are very deliberately designed.
[ Parent
| on HN ]
Re:Designing a Language Without a Parser
by medo-bear on Wednesday July 05, 2023 @05:57AM
(#36598126)
No. 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.