Talk:Collections: Difference between revisions

(simple array (or queues...) are collection according to this task?)
 
(6 intermediate revisions by 4 users not shown)
Line 8:
: Some examples are "marked" but they seems complete, showing various kinds of collection (which is a rather generic term even in computer world); e.g. C++ is the most "complete", to me. D shows something similar, and it is not marked. Java shows lists as collection, and it is not marked (so, it shouldn't be marked C++; at most it should be shortened). Javascript (PHP...) is(are) marked, but it(they) show/s something not so different from Python or Ruby, which are not marked. Similarly for Smalltalk, which anyway shows only an ordered collection (enough to eliminate the Ordered part?)...
: Wanting to add languages like C and Fortran, a simple array or a queue (like FIFO...) seem (sometimes) unable to accomplish the task... Is it so? --[[User:ShinTakezou|ShinTakezou]] 13:42, 2 March 2009 (UTC)
 
== too much J? ==
 
The J entry currently provides a variety of collection related options which were not required by the task [so, ok, the task was trivially simple in J and maybe more stuff makes this interesting]. Should they be left there because they may be of interest? Should they be removed so that the task requirements are followed more precisely? Or should anything else be done with them (moved to the talk page, turned into distinct tasks, elaborated on, printed on a t-shirt, fed to penguins, ...)? --[[User:Rdm|Rdm]] 02:42, 3 June 2010 (UTC)
 
: Nah. Collections seem to be big in J, hence the length of its entry. --[[User:Paddy3118|Paddy3118]] 05:09, 3 June 2010 (UTC)
: Take a peek at [[RCBF]] for what we've done when example groups get very large. However, I'm not averse to the t-shirt idea, myself. :) --[[User:Short Circuit|Michael Mol]] 12:13, 3 June 2010 (UTC)
 
===Racket and laundry lists===
Your right, 7000 is too much to mention, but if there is an easy way to find collections in the languages docs then a link and a note to search for a keyword/phrase that would lead to a large set of the languages documentation on collections would be good. It seems as if collections may be something that makes Racket special compared to other languages? --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:05, 13 May 2013 (UTC)
 
==Problem with OO and C==
Surely C is not an OO language and so should not be said to have classes and methods. Would it not be better to state that there are a number of functions that manipulate strings and are mostly named with a prefix of "str". --[[User:Paddy3118|Paddy3118]] 06:24, 5 June 2012 (UTC)
 
== Request for Deletion ==
 
I challenge the existence of this page.
According to Wikipedia [https://en.wikipedia.org/wiki/Collection_(abstract_data_type)#Abstract_concept_vs._implementation ''collections'' is a concept], an idea, creating another ''abstraction layer'' on top of the actual implementation like an [[array]] or [[linked list]].
This abstraction layer creates an [[interface]] to operate on an unordered aggregation of data, so the actual implementation can be ''swapped without'' breaking anything.
Hence there is no “idiomatic solution” of this “task”, but infinitely many:
This page virtually ''reproduces'' all contents of [[:Category: Data Structures]] in ''one page''.
That’s pretty counterproductive.
I therefore nominate this page for deletion (or, better, transformation into a disambiguation/explanation page).
<br/>
‑‑[[User:Root|Root]] ([[User talk:Root|talk]]) 23:56, 4 March 2022 (UTC)
:Agreed but with so many entries difficult to change. The essence of a collection is the ability to perform common actions using syntax independent of the physical structure e.g. Array, List, or Set. This could be by the language supporting for n in Collection, by enumerators, or whatever. Encouraging solutions that name the language's collections to demonstrate this ability would improve the task.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 10:09, 5 March 2022 (UTC)
2,171

edits