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

Fix cartesianProduct: default order should be lexicographically sorted (issue 9878) #1314

Closed
wants to merge 2 commits into from

Conversation

quickfur
Copy link
Member

The problem was that the default order was reverse-lexicographic, because of the order of static if in handling the case where one of the inputs may be infinite. Swapping the order of the static ifs produces the nicer ordering when both ranges are finite.

http://d.puremagic.com/issues/show_bug.cgi?id=9878

@andralex
Copy link
Member

Per the discussion in the newsgroup, we should sleep a tad more on this. Thanks for the timely response!

@quickfur
Copy link
Member Author

ping @andralex Any new ideas about how to proceed?

@quickfur
Copy link
Member Author

Rebased to prevent from going stale.

@ghost
Copy link

ghost commented Feb 15, 2014

@andralex @quickfur Status on this?

@quickfur
Copy link
Member Author

tbh, I'd rather check this in first than to wait for an unscheduled future improvement.

@quickfur
Copy link
Member Author

Rebased to fix conflict

@John-Colvin
Copy link
Contributor

@andralex any progress on this decision?

@quickfur
Copy link
Member Author

Merged with new pull that also addresses the exponential template instantiation problem:
#2276

@quickfur quickfur closed this Jun 28, 2014
@quickfur quickfur deleted the cprod_order branch August 8, 2014 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants