More on "Component Programming"
bearophile
bearophileHUGS at lycos.com
Tue May 28 02:37:06 PDT 2013
Timothee Cour:
> python uses itertools.product which is lexicographic_depth.
> Like you say, no-one can agrees what the order should be, so
> let's leave it
> up to user through a template. Sounds like a no-brainer to me.
> There are
> use cases for each order I mentioned.
Different cases enjoy different orderings, so giving it a
compile-time enum is OK. But I prefer the order of 9878 to be the
default one, because it's the most commonly needed by me, and
it's what I expect when I port Python code to D.
Bye,
bearophile
More information about the Digitalmars-d
mailing list