Talk:Associative array/Iteration: Difference between revisions

Task is clarified
(why not (but nothing to say about the name of the thing, if associative array or relation or whatever))
(Task is clarified)
Line 10:
 
::::: But if languages have built-in "container libraries", then it is a comparison task; C, Ada (I suppose) and others may be ruled out (if not using extern "container libraries" that may or may not provide the requested utility... a thing to be noted then!), but Python, Perl, PHP, Tcl, Smalltalk and others may not (and in fact they have a way of iterate over keys-values pair). Associative arrays should be always iterable I think. --[[User:ShinTakezou|ShinTakezou]] 12:51, 3 August 2009 (UTC)
 
:::::: Why do you think so? There might be no efficient or safe way to iterate an associative array. Consider an implementation that stores the array in an external storage. An implementation may deliberately disallow iteration for performance reasons, like a lock-free associative array could do, for instance. But I see that now the task is so diffusely stated, that anything would fit it! (:-)) --[[User:Dmitry-kazakov|Dmitry-kazakov]] 10:04, 5 August 2009 (UTC)