Hacker News new | ask | show | jobs
by jolt42 393 days ago
Lisps don't support OO, concurrency like Go, or type checking but you can write a DSLs for them. Not useful? How about a rules engine?
2 comments

Lisps support OO like you wouldn’t believe: https://lispcookbook.github.io/cl-cookbook/clos.html
You could write DSLs for them, but you could just as easily do it within the existing syntax. Which is exactly how all the popular lisp implementations of OO, concurrency and type checking work in practice.

Many of them do use macros. But that's not about creating a special language; that's about moving expensive computations and checks that can be done statically to compile time where they belong.