Content deleted Content added
→Remove rand calls in Example Code?: new section |
|||
Line 125:
== Remove rand calls in Example Code? ==
Especially for (very) beginner programmers, I feel that the use of rand() calls in the example functions isn't particularly necessary to illustrate how callbacks work, and might serve to unnecessarily confuse, say, a primary-school CS student comparing their program output to the example output listed. I think rand() calls should be deleted from the functions defined in the example, though it could be left in the first line of main() to illustrate that callbacks can be used with already-present functions as well. In the defined functions, simple integer returns should do. [[User:Zbbentley|Zbbentley]] ([[User talk:Zbbentley|talk]]) 21:53, 2 August 2011 (UTC)
|