-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
contributor experienceRelated to making contributions easierRelated to making contributions easierdocumentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
What should our code examples look like?
Should the code be copy-pastable so it will compile?
If that's the case, having at a minimum a main() { /* ... */ } visible in every example is helpful or we should communicate somehow that it may be needed when people are copy-pasting snippets.
Or maybe code snippets should be in self contained functions that won't build without a main?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
contributor experienceRelated to making contributions easierRelated to making contributions easierdocumentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Type
Projects
Status
Done