Operator overloading or alternatives to expression templates

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 14 11:17:03 PDT 2015


On Monday, 14 September 2015 at 13:47:10 UTC, Sebastiaan Koppe 
wrote:
> `auto q = query.builder!Person.age!">"(20).name("Peter");`

I confess that I'm not really paying attention to this thread, 
but I can't help but think plain old literal: `Person.age > 20 && 
Person.name = 'Peter'` is nicer. You can still CT check that by 
parsing the string if you want.


More information about the Digitalmars-d mailing list