Replies: 4 comments 6 replies
-
Absolutely not, that name means nothing. I'm not sure algorithm and range need rethinking. |
Beta Was this translation helpful? Give feedback.
-
We're not planning a redesign of @jmdavis is currently redesigning |
Beta Was this translation helpful? Give feedback.
-
Maybe if one ignores the C++ STL, which one should not.
Again, sorry, no. "utility", "helper", "misc", etc. might as well all be renamed to "i_give_up". |
Beta Was this translation helpful? Give feedback.
-
Okay, a bold idea: just merge
There is no equivalent of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
These two packages are closely related. Most algorithms work on ranges and ranges only. Range-based code usually needs to import some
std.algorithm
modules for basic things likemap
orfold
. And it’s not always clear which of this packages defines a given function.On the other hand, routines in
algorithm
that don’t operate on ranges seems too basic to be called “algorithms”:min
,max
,clamp
,swap
,move
etc. Maybe they should be put to a separate module, likephobos.sys.utility
?There should be some better way to organize these packages, but I don’t have a clear answer how exactly it should be done. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions