Base.any
has different semantics from base implementation
#154
Labels
Base.any
has different semantics from base implementation
#154
The
Base.mapreduce
based implementation ofBase.any
andBase.all
currently has slightly different semantics from the implementation in
Base
, in two ways:The base implementation specifies that
any
andall
are short-circuiting reductions. Their semantics can differ if the predicate applied is side-effecting (noteany(p, itr)
which is implemented in SupportTranspose
andAdjoint
in broadcast better #148 ). Would retaining the difference and clarifying it in documentation be reasonable?The base implementation implements three-valued logic if the input iterable contains
missing
values. We might well implement it with something like:However, currently
CuArrays
doesn't handle missing values correctly yet (~~~I'll write an issue there as well~~~ see issue here). I don't know if it makes sense to implement this inGPUArrays
and makeCuArrays
fail the test.The text was updated successfully, but these errors were encountered: