Super-dee-duper D features
Andrei Alexandrescu (See Website For Email)
SeeWebsiteForEmail at erdani.org
Wed Feb 14 18:29:13 PST 2007
Walter Bright wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>> Your example shows that you are able to make a list, but it gives zero
>> indication on whether you can express what a list _is_.
>
> I just don't feel that everything that can be abstracted away, should
> be. Sometimes a trivial list is just a ->next, and doesn't need any more
> than that. Sometimes, I just want to do x*x*x rather than abstracting
> away a cube(T)(T x) function.
>
> An abstraction becomes useful when it's repeated repeatedly, not when
> it's used once or twice.
Of course I agree with that, but I also think lists are quite a
worthy-for-reuse abstraction so it's not inspired to choose it to bash
needless abstraction.
Here's a more humorous take on the subject:
http://www.willamette.edu/~fruehr/haskell/evolution.html
Andrei
More information about the Digitalmars-d
mailing list