Does D have too many features?

Timon Gehr timon.gehr at gmx.ch
Sun Apr 29 12:37:40 PDT 2012


On 04/29/2012 08:08 PM, Manu wrote:
> On 29 April 2012 18:50, Don <nospam at nospam.com
> <mailto:nospam at nospam.com>> wrote:
>
>     On 28.04.2012 20:47, Walter Bright wrote:
>
>         Andrei and I had a fun discussion last night about this
>         question. The
>         idea was which features in D are redundant and/or do not add
>         significant
>         value?
>
>         A couple already agreed upon ones are typedef and the cfloat,
>         cdouble
>         and creal types.
>
>         What's your list?
>
>
>     * The >>> operator, which does nothing except introduce bugs (It
>     does NOT perform an unsigned shift).
>
>
> What does it do? I use this all over the place, I assumed it worked...
> maybe I have bugs?
>

It does work, but it behaves in unexpected ways for narrow signed 
integers (short/byte) because it sign-extends them before shifting. It 
works fine with int/uint/long/ulong.


>
>     * Most of the __traits are useless and redundant.
>
>
> Which traits are useless and redundant? I'm actually finding the set is
> incomplete, and there are some missing (parameter list introspection,
> current scope/object identification, current module/package)

+1.


More information about the Digitalmars-d mailing list