News for hackers. Stuff that matters.
Re:From AST to Lossless Syntax Tree by chubot on Sunday February 12, 2017 @02:36PM (#13630134)
OK interesting, Julia metaprogramming looks very similar to this, and I hope to take inspiration from it for oil:

http://docs.julialang.org/en/stable/manual/metaprogramming/

https://en.wikibooks.org/wiki/Introducing_Julia/Metaprogramm...

They use :(expr) or quote/end for quotation, and $var for interpolation. Elixir metaprogramming uses quote/end for quotation, and unquote for interpolation. (In fact the entire Elixir language appears to be done with AST metaprogramming, since it's on top of Erlang.)

I basically think of these schemes as "Lisp-like AST metaprogramming, but with Syntax". Thanks for the pointer on Scala.

I saw a video where people asked why Clang source tools generate textual changes rather than AST changes... and this is a good example. People for some reason think that ASTs are "cleaner" or more usable, but they can be a pain.

There are no comments on this comment yet.