On 01/04/2016 07:39 AM, Jacob Carlborg wrote:
If you can't use the host language, i.e. Person.where(e => e.name ==
"John");, what's the point of inventing a new DSL? Why not just use SQL
if the DSL needs to be in a string anyway.

I agree. A CTFE SQL parser with automatic variable binding would be pretty rad. Not to mention it would by design take care of things like string injection attacks etc. Also: finding SQL syntax errors during compilation of D code... priceless. -- Andrei

Reply via email to