Dlang seems like java now,but why not let d more like C# Style?

Idan Arye via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 17 07:14:17 PDT 2015


On Tuesday, 17 March 2015 at 10:07:19 UTC, Kagamin wrote:
> On Monday, 16 March 2015 at 13:24:28 UTC, Idan Arye wrote:
>> I don't think the problem is the lack of pattern matching. I 
>> think the problem is that by forcing the query syntax into 
>> lambda expression syntax, you obfuscate the syntax tree 
>> without really gaining any value.
>
> Where takes a delegate because that's how it works: 
> https://msdn.microsoft.com/en-us/library/vstudio/system.linq.enumerable.where.aspx


The version of where that works on .NET objects takes a delegate 
- but the version used to generate SQL takes an `Expression` - 
https://msdn.microsoft.com/en-us/library/vstudio/bb535040%28v=vs.110%29.aspx


More information about the Digitalmars-d-learn mailing list