Talk:Call a function: Difference between revisions

→‎Huh?: new section
(To find out how to call a function, we really need a task that demonstrates this.)
(→‎Huh?: new section)
Line 2:
: I'm fairly certain that this is duplicative of a number of tasks or parts of other taks. If the distinction is just to show calling and not the mechanism, I suggest the requirement include referencing the other tasks or omits as appropriate. --[[User:Dgamey|Dgamey]] 03:26, 15 July 2011 (UTC)
::Some languages have different mechanisms for functions and subroutines, and the Function definition task did not consider calling a function. This task provides a centralized comparative reference for all of the calling mechanisms. I know other tasks may utilized mechanisms that are used in other tasks, but this does not necessarily help with comparison of sub methods, because different approaches to a solution may have been used, so the sub methods are not present in the solution, even though they are supported by the language. To find out how to call a function, we really need a task that demonstrates this. [[User:Markhobley|Markhobley]] 14:23, 15 July 2011 (UTC)
 
== Huh? ==
 
In some languages, at least, there are multiple ways of doing things -- especially something so basic as "calling a function". Is the intent of this task to show typical use? Or is it a much larger task of showing various or all possible ways of accomplishing these tasks? Also, what is a "function" if the language spec does not use the term -- is it "anything that can be said to be equivalent to the mathematical concept of a function?" (or some constrained version of that -- if so, what kind of constraints are we talking about here?) or is it "anything that can be said to be equivalent to language X's concept of a function?" (if so, what is X?) or is it some other concept which is independent of language X? --[[User:Rdm|Rdm]] 14:51, 15 July 2011 (UTC)
6,951

edits