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

Ellery Newcomer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 16 05:18:41 PDT 2015


On Sunday, 15 March 2015 at 14:58:54 UTC, Idan Arye wrote:
>
> Even if we can't get the lambdas as syntax tress, the fact that 
> we can send whatever types we want to the delegates and 
> overload operators and stuff means we can still convert the 
> lambdas into SQL.

There are limitations on operator overloading that make it much 
less likely you can use the exact same lambdas for collections 
and sql. Bad for testability.

> At any rate, I really don't like what C# did with LINQ-to-SQL. 
> The whole special-syntax to functional-style to syntax-tree to 
> SQL is too overcomplicated - a simply lisp-style macro 
> system(like what they have in Scala or Rust) could have done 
> the trick in a simpler and faster way.

overcomplicated? probably - it's microsoft. And any time I have 
to manipulate the ASTs I find myself wishing for a language with 
pattern matching. I wonder if F# offers anything in that regards..


More information about the Digitalmars-d-learn mailing list