Reddit: why aren't people using D?

Lutger lutger.blijdestijn at gmail.com
Mon Jul 27 12:46:55 PDT 2009


bearophile wrote:

> Lutger:
> 
>> Adding random features to a language just because they look cool is a
>> terrible thing to do.
> 
>>Isn't this a bit contradictory?<
> 
> I don't see a contradiction. For example list comprehensions and unit
> testing module aren't random features, they are known to be quite useful.

Sure, I was referring to your suggestion of adding features to see how they 
pan out and then removing them, not any particular feature.
 
>>list comprehensions are only worth it if you add tuples imho.<
> 
> Nope. Lazy/eager sequence comprehensions can be useful in many situations
> even if you don't have tuples.

list comprehensions don't do anything useful over map & friends but make 
them look better. They are super handsome in python in combination with 
tuples. So my point was, if you go for list comprehensions as a sweetener,  
you really should have some tuples with them too. 




More information about the Digitalmars-d mailing list