Difference between revisions of "Template talk:Function"

446 bytes added ,  10:47, 9 February 2009
imported>DragoonWraith
imported>TastyWheat
Line 44: Line 44:
:I changed the template today so that if returnType is set to "void" nothing will be shown for return information as opposed to (void) appearing. If it is omitted an error will still be shown though. I don't think its necessary to explicitly show (void) or () or anything at all when the function has no return value. The fact that nothing is shown for return value (and the summary won't say anything about a return value either) should be enough indication that it doesn't return a value.
:I changed the template today so that if returnType is set to "void" nothing will be shown for return information as opposed to (void) appearing. If it is omitted an error will still be shown though. I don't think its necessary to explicitly show (void) or () or anything at all when the function has no return value. The fact that nothing is shown for return value (and the summary won't say anything about a return value either) should be enough indication that it doesn't return a value.
:--[[User:SnakeChomp|SnakeChomp]] 00:24, 31 January 2009 (UTC)
:--[[User:SnakeChomp|SnakeChomp]] 00:24, 31 January 2009 (UTC)
::I can't say I'm crazy about the return type being surrounded by parenthesis, but if that's what you're all used to I can deal with it.  I do however think void types should be explicitly displayed.  Almost every other programming language explicitly labels void functions as such.<br>
::-[[User:TastyWheat|TastyWheat]] <small>([[User_talk:TastyWheat|talk]] - [[Special:Contributions/TastyWheat|contribs]])</small> 15:47, 9 February 2009 (UTC)


===CategoryList===
===CategoryList===
Anonymous user