Creating domain-specific languages in Julia using macros

By: n JuliaLang - The Julia programming language n

Re-posted from: https://julialang.org/blog/2017/08/dsl/index.html

Creating domain-specific languages in Julia using macros | Since the beginning of Julia, it has been tempting to use macros to write domain-specific languages (DSLs), i.e. to extend Julia syntax to provide a simpler interface to create Julia objects with complicated behaviour. The first, and still most extensive, example is JuMP (https://github.com/Ju…