26-Feb-2013 20:16, deadalnix пишет:
Carmack said : « I will always take an aggressively simple approach to
things » and so I did, as I love cargo cult.
More seriously, I face the need of more simplicity into D quite often,
as the feature matrix is quite heavy.
So here is a new DIP about function call (and function call only, I have
2 more DIP to come, but writing them take quite a lot of time). I
actually had the time to play around with different scheme, and that one
seems clearly to be the simplest.
As usual, destroy, I don't expect to get unanimity on that. But I tried
very hard to get most benefit of actual situation, including the
possibility of optional parentheses in some situations (even if I'm not
the biggest fan of it, I recognize that they are nice).
I like the simplicity and the automatic anti-boilerplate "@property int
blah;".
The fact that empty can't be "enum empty = false;" is a problem since
that's how infinite ranges are statically distinguished.
--
Dmitry Olshansky