logoalt Hacker News

miki123211today at 9:22 AM1 replyview on HN

> I see Rust macros as the closest thing that demonstrates homoiconicity in mainstream Algol-based languages

I don't know if you consider Elixir mainstream, but IMO their macro system is much closer to lisp's ideal.

Elixir is basically Lisp, but with better syntax, a modern ecosystem, and running on the Beam. Unlike languages like Rust, Elixir's conditionals and function definitions are just calls in the AST, even though the syntax looks mainstream and not like paren soup.


Replies

embedding-shapetoday at 9:33 AM

> Elixir is basically Lisp, but with better syntax

Which so helpfully removes many of the benefits of lisps :P I don't understand this argument at all, if it's not s-expressions nor quacks like a lisp, in what way is it lisp at all? Making it algol/C-like already makes it like the rest of the 99% of the languages, without any of the easy benefits of the neat and simple syntax of lisps.

show 1 reply