[Issue 3561] math.abs signature accepts static arrays, but errors internally.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 3 12:42:31 PST 2015


https://issues.dlang.org/show_bug.cgi?id=3561

--- Comment #7 from hsteoh at quickfur.ath.cx ---
Precisely. D has enough machinery to be able to factor out the common logic of
applying a unary function over a static array, dynamic array, matrix, etc.,
there's no need to complicate the implementation of abs with something that
isn't even scalable in the long run (have to implement looping over array /
vector for every unary function in std.math, with possibility of bugs each
time, plus added maintenance costs).

--


More information about the Digitalmars-d-bugs mailing list