Super-dee-duper D features
Walter Bright
newshound at digitalmars.com
Wed Feb 14 16:44:49 PST 2007
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.
More information about the Digitalmars-d
mailing list