Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Six Months with Julia: Parse-Time Transpilation in 80 Lines or Less. Parent comment
There's some really useful and approachable info here: https://docs.julialang.org/en/v1/manual/metaprogramming/inde...
You can think of Julia as a Lisp-1 with opt out hygenic macros hiding behind Algol syntax. However, the AST is very lispy:
julia> dump(:(x^2 - 1)) Expr head: Symbol call args: Array{Any}((3,)) 1: Symbol - 2: Expr head: Symbol call args: Array{Any}((3,)) 1: Symbol ^ 2: Symbol x 3: Int64 2 3: Int64 1
Furthermore, you can see this package https://github.com/swadey/LispSyntax.jl for a string macro that lets julia use Lisp style syntax instead.
There's some really useful and approachable info here: https://docs.julialang.org/en/v1/manual/metaprogramming/inde...
You can think of Julia as a Lisp-1 with opt out hygenic macros hiding behind Algol syntax. However, the AST is very lispy:
The `:` is how you quote code in Julia, and `dump` is just a convenient function for printing nested data-structures.Furthermore, you can see this package https://github.com/swadey/LispSyntax.jl for a string macro that lets julia use Lisp style syntax instead.