JuliaApproximation / DomainSets.jl

A Julia package for describing domains as continuous sets of elements
MIT License
72 stars 12 forks source link

Don't use ×? #67

Open dlfivefifty opened 4 years ago

dlfivefifty commented 4 years ago

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.

daanhb commented 3 years ago

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].