shouting versus dotting
Marcin Kuszczak
aarti_please_no at spam_interia.pl
Tue Oct 7 13:32:32 PDT 2008
Andrei Alexandrescu wrote:
> Aarti_pl wrote:
>> I would be much more happy with implementation of my proposal:
>> http://d.puremagic.com/issues/show_bug.cgi?id=1827
>>
>> I mean here especially syntax for "is expression" for templates.
>>
>> http://digitalmars.com/d/1.0/expression.html#IsExpression
>>
>> As it occurred on Tango conference in talk of Rafał Bocian (who lead the
>> D course for students) syntax for "is expression" and specification
>> (among few other things) is especially difficult for newbies in D.
>>
>> Unfortunately answer from Walter, why he didn't decide to change current
>> syntax was.... guess what? --- It doesn't look nice in code...
>>
>> Bad luck, said sad pirate .(
>>
>> BR
>> Marcin Kuszczak
>> (aarti_pl)
>
> Your proposal should be reevaluated in wake of the conditional
> templates, which Walter has implemented a couple of releases ago.
>
> Andrei
Yes, I am aware of that. They are just small part of the whole proposal, but
currently implemented in such a way that it is not possible to use it in
e.g. static asserts and aliases like it was proposed.
I still think that proposal is good (no one pointed out problems with it).
It could be implemented as kind of compile time expression once, and then
used in other places. It allows also more expressiveness and predictable
syntax e.g.
void call(T : class)(T instance) {}
I hope that above mentioned issues with current design of IsExpression will
be eventually fixed somehow, sometime...
The strange think here is how minor issues (as most of community doesn't
have problem with it) suddenly emerges from deeps and good ideas (which
solve real problems) are sunken in the water... Well, I can give more
examples if you want :-)
--
Regards
Marcin Kuszczak (Aarti_pl)
-------------------------------------
Ask me why I believe in Jesus - http://www.zapytajmnie.com (en/pl)
Doost (port of few Boost libraries) - http://www.dsource.org/projects/doost/
-------------------------------------
More information about the Digitalmars-d
mailing list