A nice way to step into 2012

Walter Bright newshound2 at digitalmars.com
Tue Dec 27 12:07:51 PST 2011


On 12/27/2011 11:50 AM, so wrote:
> 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.

I know.

Unfortunately, the C/C++ text preprocessor has left such a bad taste in peoples' 
mouths that anything even remotely suggestive of it has an "ick" factor that it 
is hard to get past.


More information about the Digitalmars-d mailing list