Rosetta Code:Village Pump/Arrays: Difference between revisions

Content added Content deleted
No edit summary
(Idiomatic array use should beat any forced conceptual model from some language(s), most of the time - to aid language comparison.)
Line 40: Line 40:


Any task description should consider this distinction and make clear which kind of array should be used. Only then we can avoid ambigous task descriptions. [[User:Aschloegl|Aschloegl]] ([[User talk:Aschloegl|talk]]) 15:21, 21 July 2013 (UTC)
Any task description should consider this distinction and make clear which kind of array should be used. Only then we can avoid ambigous task descriptions. [[User:Aschloegl|Aschloegl]] ([[User talk:Aschloegl|talk]]) 15:21, 21 July 2013 (UTC)

:For many tasks, this could end up being a distinction without true meaning. Unless the task is specifically about the distinctions you make above then how a task is implemented should be done in the idiomatic way of a language so we can better compare the languages rather than artificially restricting all languages to use the same meaning for "array". If some languages uses a space separated string of the numeric representation of integers as its array on integers then if the task is to store the first ten integers in an array then print the 7'th member of the array, then I think it would be pretty dumb for that languages example to jump through hoops to store ints in any way other than how it does naturally. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 09:45, 22 July 2013 (UTC)