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

2015-03-17 Thread Kagamin via Digitalmars-d-learn
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

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

2015-03-17 Thread Idan Arye via Digitalmars-d-learn
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

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

2015-03-17 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 17 March 2015 at 14:14:19 UTC, Idan Arye wrote: 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 Conceptually Where takes a

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

2015-03-16 Thread Israel via Digitalmars-d-learn
On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: On Saturday, 14 March 2015 at 13:52:13 UTC, Craig Dillabaugh wrote: I don't have any C# experience so I can't compare those languages much, but I've heard people say their are D / C# similarities. Anyway, this isn't a

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

2015-03-16 Thread Idan Arye via Digitalmars-d-learn
On Monday, 16 March 2015 at 12:18:42 UTC, Ellery Newcomer wrote: 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

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

2015-03-16 Thread Ellery Newcomer via Digitalmars-d-learn
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

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

2015-03-15 Thread Idan Arye via Digitalmars-d-learn
On Sunday, 15 March 2015 at 00:56:24 UTC, Ellery Newcomer wrote: On Saturday, 14 March 2015 at 23:57:33 UTC, weaselcat wrote: On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: And C# has LINQ, which when combined with the last point is fricken awesome. what does LINQ offer

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

2015-03-15 Thread Idan Arye via Digitalmars-d-learn
On Saturday, 14 March 2015 at 09:59:05 UTC, dnewer wrote: yes,java is good lang,but i dont think it's better than c#,if no oracle or google support java will less and less. C# is a good and easy lang. i like C# . but,C# cant compiled to native code. So far, I have been searching for a

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

2015-03-15 Thread dnewer via Digitalmars-d-learn
On Sunday, 15 March 2015 at 14:58:54 UTC, Idan Arye wrote: On Sunday, 15 March 2015 at 00:56:24 UTC, Ellery Newcomer wrote: On Saturday, 14 March 2015 at 23:57:33 UTC, weaselcat wrote: On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: And C# has LINQ, which when combined with

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

2015-03-15 Thread Kagamin via Digitalmars-d-learn
On Saturday, 14 March 2015 at 09:59:05 UTC, dnewer wrote: yes,java is good lang,but i dont think it's better than c#,if no oracle or google support java will less and less. C# is a good and easy lang. i like C# . Not sure what do you mean. D has classes, interfaces and foreach, that should

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

2015-03-15 Thread Kagamin via Digitalmars-d-learn
On Sunday, 15 March 2015 at 14:58:54 UTC, Idan Arye wrote: Here is a very crude, very basic example: http://dpaste.dzfl.pl/94d851d7ca63. U++ approach will probably give more succinct result. Not sure how it fares against D philosophy: does it replace range primitives with whole new thing?

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

2015-03-14 Thread Ellery Newcomer via Digitalmars-d-learn
On Saturday, 14 March 2015 at 23:57:33 UTC, weaselcat wrote: On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: And C# has LINQ, which when combined with the last point is fricken awesome. what does LINQ offer that UFCS-style functional programming does not? LINQ basically

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

2015-03-14 Thread weaselcat via Digitalmars-d-learn
On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: And C# has LINQ, which when combined with the last point is fricken awesome. what does LINQ offer that UFCS-style functional programming does not?

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

2015-03-14 Thread Meta via Digitalmars-d-learn
On Sunday, 15 March 2015 at 00:56:24 UTC, Ellery Newcomer wrote: On Saturday, 14 March 2015 at 23:57:33 UTC, weaselcat wrote: On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote: And C# has LINQ, which when combined with the last point is fricken awesome. what does LINQ offer

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

2015-03-14 Thread Ellery Newcomer via Digitalmars-d-learn
On Saturday, 14 March 2015 at 13:52:13 UTC, Craig Dillabaugh wrote: I don't have any C# experience so I can't compare those languages much, but I've heard people say their are D / C# similarities. Anyway, this isn't a criticism of your comment, I was just curious what (other than the

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

2015-03-14 Thread dnewer via Digitalmars-d-learn
On Saturday, 14 March 2015 at 09:59:05 UTC, dnewer wrote: yes,java is good lang,but i dont think it's better than c#,if no oracle or google support java will less and less. C# is a good and easy lang. i like C# . but,C# cant compiled to native code. So far, I have been searching for a

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

2015-03-14 Thread bearophile via Digitalmars-d-learn
dnewer: but,C# cant compiled to native code. Soon you will be able to compile C# natively. Bye, bearophile

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

2015-03-14 Thread dnewer via Digitalmars-d-learn
yes,java is good lang,but i dont think it's better than c#,if no oracle or google support java will less and less. C# is a good and easy lang. i like C# . but,C# cant compiled to native code. So far, I have been searching for a language, like c # write efficiency, but more secure than that of

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

2015-03-14 Thread dnewer via Digitalmars-d-learn
On Saturday, 14 March 2015 at 10:04:15 UTC, bearophile wrote: dnewer: but,C# cant compiled to native code. Soon you will be able to compile C# natively. Bye, bearophile i know some thing about .net native. but its too late.i dont think microsoft will rranslate all libiary to native. and

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

2015-03-14 Thread Craig Dillabaugh via Digitalmars-d-learn
On Saturday, 14 March 2015 at 09:59:05 UTC, dnewer wrote: yes,java is good lang,but i dont think it's better than c#,if no oracle or google support java will less and less. C# is a good and easy lang. i like C# . but,C# cant compiled to native code. So far, I have been searching for a

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

2015-03-14 Thread ketmar via Digitalmars-d-learn
On Sat, 14 Mar 2015 10:08:23 +, dnewer wrote: and even c# can be compile natively. i dont think C# will support to can be used to write a driver! and you just don't need to write drivers. signature.asc Description: PGP signature