Does D have too many features?

Manu turkeyman at gmail.com
Mon Apr 30 03:27:51 PDT 2012


On 30 April 2012 10:32, Don Clugston <dac at nospam.com> wrote:

> 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.
>

O_O
Is that intentional? Or is it... a bug?
I smiled when I saw >>> in the language, I appreciate its presence. It's
not necessary, but it cuts down on some ugly explicit casting (which
theoretically makes generic code simpler).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120430/76d0f167/attachment.html>


More information about the Digitalmars-d mailing list