What's the deal with "Warning: explicit element-wise assignment..."
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 30 08:45:33 PDT 2014
On 4/30/14, 4:20 AM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Wednesday, 30 April 2014 at 11:13:46 UTC, John Colvin wrote:
>> walkLength is a really good name. Clear, concise, to the point. It's
>> not often that you can make such a short name that explains the
>> behaviour so well.
>
> Actually it isn't a good abstraction as it exposes implementation
> internals.
>
> The name should indicate what you get (the calculating of a result), not
> how the framework obtains it (sequential scan).
Making complexity an implementation detail is an antipattern. -- Andrei
More information about the Digitalmars-d
mailing list