Future of string lambda functions/string predicate functions

Jonathan M Davis jmdavisProg at gmx.com
Tue Aug 6 03:16:48 PDT 2013


On Tuesday, August 06, 2013 12:09:25 Jakob Ovrum wrote:
> On Tuesday, 6 August 2013 at 10:05:54 UTC, Jakob Ovrum wrote:
> > I think those few situations should forego string lambdas in
> > favour of reduced cognitive load and increased consistency.
> 
> To clarify: those are the benefits we gain under the presumption
> that string lambdas are not inherently flawed.
> 
> I personally believe that they *are* - as long as string lambdas
> magically introduce symbols and are limited to an arbitrary
> selection of accessible symbols, I don't think it's reasonable to
> use them in *any* code.

So, don't use them with functions. Just use them with operators. They're 
fantastic for that and far less verbose than the newer lambda syntax is for 
the same code.

- Jonathan M Davis


More information about the Digitalmars-d mailing list