Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use ×? #67

Open
dlfivefifty opened this issue Jul 13, 2020 · 1 comment
Open

Don't use ×? #67

dlfivefifty opened this issue Jul 13, 2020 · 1 comment

Comments

@dlfivefifty
Copy link
Member

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
Copy link
Member

daanhb commented Mar 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants