Update random.adoc to include PROTOTYPE section #472
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I look up a function, often what I'm looking for is data type(s) -- mostly function parameter data type(s) and the return value data type. I like to have that information prominent, so I don't have to dig through the document to find it. And, yes, the Arduino Reference does have a consistent location for this information, but, I'm an infrequent user who codes in several languages [PHP, C/C++, JavaScript, and I'm learning Python]. There's a de facto-ish standard for presenting data type information: near the top, in its own category, formatted as the syntax for the function call with parameter and return value data type indicated. The Arduino Function Reference documents do not follow this standard, and being an infrequent visitor to the Arduino Function Reference, I tend to forget this atypical arrangement and wind up having to dig for it.
In the case of the "delay()" function, it's a short excursion, but in this document, typing information for the "random()" function's parameters, is buried way down in the "Notes and Warnings" section!
My edit puts typing information at the top, in its own category, making this information easy to acquire.
BTW: I'm betting this was omitted to keep this document Noob-friendly, so I'm sympathetic to this possible concern. But, adding this would be an asset for coders like me.
Examples of the defacto-ish formatting I'm referring to: