Talk:Assigning Values to an Array: Difference between revisions

From Rosetta Code
Content added Content deleted
(Type of error to return? Type of index?)
(Mention I flagged article.)
Line 5: Line 5:


This task leaves a lot up in the air. Some languages can only do numerical indexes, some can do anything. Also, the requirements say to return an error if the key doesn't exist. None of the languages at this time fulfill this requirement, except Ada, which will throw an exception if the key is out of bounds.
This task leaves a lot up in the air. Some languages can only do numerical indexes, some can do anything. Also, the requirements say to return an error if the key doesn't exist. None of the languages at this time fulfill this requirement, except Ada, which will throw an exception if the key is out of bounds.

:I flagged the task for clarification. --[[User:Short Circuit|Short Circuit]] 22:42, 22 January 2007 (EST)

Revision as of 03:42, 23 January 2007

Why disturb something as simple as assigning a value in an array with a method/function declaration?

Type of error to return? Type of index?

This task leaves a lot up in the air. Some languages can only do numerical indexes, some can do anything. Also, the requirements say to return an error if the key doesn't exist. None of the languages at this time fulfill this requirement, except Ada, which will throw an exception if the key is out of bounds.

I flagged the task for clarification. --Short Circuit 22:42, 22 January 2007 (EST)