Does D have too many features?

Alex Rønne Petersen xtzgzorex at gmail.com
Sun Apr 29 13:21:19 PDT 2012


On 29-04-2012 00:49, H. S. Teoh wrote:
> On Sun, Apr 29, 2012 at 12:39:03AM +0200, Timon Gehr wrote:
>> On 04/28/2012 10:24 PM, Timon Gehr wrote:
>>> On 04/28/2012 08:47 PM, 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?
>>>
>>>
>>> - Associative array literals as non-associative array initializers [1]
>>> - C style array declarations [2]
>>> - 'align' declaration [3]
>>> - 'synchronized' [4]
>>> - special treatment of built-in types during parsing [5]
>>> - the arcane restrictions on which exact kind of argument can be
>>> used to substitute which kind of template parameter
>>>
>>>
>>
>> Oh, completely forgot about that one:
>>
>> - 'in' operator returning a pointer to the element.
>
> Yeah that one elicited a WAT from me when I first started using it.
> Surprisingly enough, it sounded OK when I read it in TDPL, but when I
> started using it I realized just how b0rken it is.
>
>
> T
>

How so? It's seemed entirely reasonable to me.

-- 
- Alex


More information about the Digitalmars-d mailing list