|
|
|
|
|
by weinzierl
277 days ago
|
|
The way you can write code of the target DSL without wrapping it in a string both gives me fears and excitement: solver.assert((&x + 4).eq(7));
My subconsciousness shouts "MISSING QUOTES" while my ratio says "Calm down, that's nice and clean and safe and how it's supposed to be - ever has been". |
|
In general, for modeling layers embedded in programming languages, having operator overloading makes the code so much better to work with. Modeling layers where one has to use functions or strings that are evaluated are much harder to work with.