Does D have too many features?
Don Clugston
dac at nospam.com
Mon Apr 30 00:32:24 PDT 2012
On 29/04/12 20:08, 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 works only for two types: int and long.
For everything else, it is identical to >>
So for short and byte, and in generic code, it's ALWAYS a bug.
More information about the Digitalmars-d
mailing list