digitalmars.D - Re: improvement request - enabling by-value-containers
- Kagamin <spam here.lot> Dec 14 2010
- Jonathan =?UTF-8?B?U2NobWlkdC1Eb21pbsOp?= <devel the-user.org> Dec 15 2010
- Kagamin <spam here.lot> Dec 15 2010
Jonathan Schmidt-Dominé Wrote:Just about my experiences: When trying to hack some algorithms quickly in Ruby I made a lot of mistakes because I had to care about a .clone everywhere and because Array.new(5, []) does not work as expected (sorry, but Array.new(5) { return [] } is not nice). So in fact C++ made my life easier than the new, stylish, simple Ruby-programming-language, because of the great by-value-containers in the STL.
Hmm... never needed to clone a container. Is there a use case for by-value containers?
Dec 14 2010
Kagamin wrote:Hmm... never needed to clone a container. Is there a use case for by-value containers?
annoying and difficult to find the bugs.
Dec 15 2010
Jonathan Schmidt-Dominé Wrote:Kagamin wrote:Hmm... never needed to clone a container. Is there a use case for by-value containers?
annoying and difficult to find the bugs.
What I understand from description, the algorithm consists of several steps of joining. Did you try to join in place?
Dec 15 2010
Kagamin wrote:What I understand from description, the algorithm consists of several steps of joining. Did you try to join in place?
of sets is the best in some steps or something like that, however, it is somehow irrelevant.
Dec 15 2010