Since × means cross which means the cross product, I'm not sure it's good style to overload to also mean cartesianproduct. In particular, in my case I'm using AbstractVectors as domains and wanted to form the Cartesian product, and was surprised by the error.
Hmm, unfortunately I frequently use this notation. But yes, x is tied to cross in Julia. Any alternative for cartesian products?
LazySets.jl also does it: here
It might be nice (but much more typing) to be able to say: [(x,y) for x in 0..1, y in 0..1].
Since × means
cross
which means the cross product, I'm not sure it's good style to overload to also meancartesianproduct
. In particular, in my case I'm usingAbstractVector
s as domains and wanted to form the Cartesian product, and was surprised by the error.