[Issue 10381] Nonsense associative array comparison
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 20 13:31:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10381
--- Comment #5 from hsteoh at quickfur.ath.cx 2013-09-20 13:31:02 PDT ---
(In reply to comment #4)
> (In reply to comment #2)
> > There are some meaningful (and occasionally useful) operations done on whole
> > associative arrays, like testing if the keys of an associative array are a
> > subset (or strict subset) of the keys of another associative array.
>
> Yes, interesting but too complex/specialized for built-in functionality IMHO.
FWIW, using == on AA's already does (a superset of) what an AA subset operation
would do (iterate over AA keys and check for existence in the other AA).
But I agree that it shouldn't be built-in functionality. Maybe a nice library
wrapper in std.array, but not much beyond that.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list