DIP 50 - AST macros
Jacob Carlborg
doob at me.com
Wed Nov 13 04:30:47 PST 2013
On 2013-11-13 10:58, Regan Heath wrote:
> The motivation is the same as for "foreach", it is a general syntax for
> accessing a wide range of containers including databases with a common
> syntax. We could, equally, go the other way, use the IMO nicer
> composition syntax X.where(..).foo(...).etc and translate that to SQL,
> without the need to the SQL like DSL inside D.
My original example was not Linq. I tried to make it look as much as
ranges as possible. Yes, I'm tinking something like what you're suggesting:
Post.where(e => e.title == "Foo" && e.comments.title == "Bar").join(e =>
e.comments);
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list