On Tue, 27 Dec 2011 20:11:41 +0200, Walter Bright
<newshou...@digitalmars.com> wrote:
On 12/27/2011 7:11 AM, Andrei Alexandrescu wrote:
Imagine how bitter I am that the string lambda syntax didn't catch on!
As I told Andrei last night, I think it was a great experiment. Sure, it
failed, but it was a great idea, technically sound, and the fact that it
worked is a testament to D's power.
If we're not willing to try things like that, we've failed in a much
grander sense.
So I have no regrets at all about that.
If C++ or Java (or what have you) had support for string as template
parameters,
string lambdas probably would be irreplaceable to many.
|"a % 2"|
|a => a % 2|
Still it is shorter.