Talk:Optional parameters: Difference between revisions

From Rosetta Code
Content added Content deleted
(Table format)
 
Line 8: Line 8:
And sorting is ''of'' rows and ''by'' column.
And sorting is ''of'' rows and ''by'' column.
Actually, now I have written it out - it makes sense. --[[User:Paddy3118|Paddy3118]] 06:58, 24 May 2009 (UTC)
Actually, now I have written it out - it makes sense. --[[User:Paddy3118|Paddy3118]] 06:58, 24 May 2009 (UTC)

== Isn't too much if the aim is to show optional parameters? ==

I mean, if the aim if to show how languages allow (if allow) (named) optional parameters, then isn't the task too much complex? Even without implementing the sort if not built-in, wouldn't it be simpler just to ask for sorting of an array with the optional parameter ordering and reverse? It would show anyway the "optional parameter" part without the fuss of coping with multidimensional arrays? --[[User:ShinTakezou|ShinTakezou]] 09:10, 24 May 2009 (UTC)

Revision as of 09:10, 24 May 2009

Table?

So the input table in your example is:

  "a"    "b"    "c"
  ""     "q"    "z"
  "zap"  "zip"  "Zot"

And sorting is of rows and by column. Actually, now I have written it out - it makes sense. --Paddy3118 06:58, 24 May 2009 (UTC)

Isn't too much if the aim is to show optional parameters?

I mean, if the aim if to show how languages allow (if allow) (named) optional parameters, then isn't the task too much complex? Even without implementing the sort if not built-in, wouldn't it be simpler just to ask for sorting of an array with the optional parameter ordering and reverse? It would show anyway the "optional parameter" part without the fuss of coping with multidimensional arrays? --ShinTakezou 09:10, 24 May 2009 (UTC)