Creating domain-specific languages in Julia using macros

By: JuliaLang - The Julia programming language

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

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…

Read more