Lazy eval
Walter Bright
newshound at digitalmars.com
Mon Aug 21 19:41:24 PDT 2006
Derek Parnell wrote:
> On Mon, 21 Aug 2006 16:33:00 -0700, Walter Bright wrote:
>> The problem with requiring the { } around the argument is that
>> programmers just don't like it. I don't think I can make them like it.
>
> Huh? You asked them all? You didn't ask me and I like it.
Did you use it before 0.165? Did anyone? Everyone I'd show the { }
syntax to reacted with zzzzzz. I show them the one without, and all of a
sudden they are excited about it and can think of all kinds of uses.
C++ programmers have been trying to do this for over a decade - first
with preprocessor macros, and now with expression templates.
Perhaps what is so off-putting of this feature, as opposed to out,
inout, const, implicit conversions, and other effects that require one
to look at the interface, is it's very unusual (even unique?) for a
C-like language.
More information about the Digitalmars-d
mailing list