F.16 ("in" parameters): Move Matrix example to F.20 (return values)#1922
Merged
hsutter merged 1 commit intoisocpp:masterfrom Jun 13, 2022
Merged
F.16 ("in" parameters): Move Matrix example to F.20 (return values)#1922hsutter merged 1 commit intoisocpp:masterfrom
hsutter merged 1 commit intoisocpp:masterfrom
Conversation
Member
|
technically it is showing pass by reference to const, though content-wise it is really an example for F.20 (return by value). |
The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters. With help from Sergey Zubkov.
45b0cf9 to
d1a9e79
Compare
Contributor
Author
@cubbimew Thanks again for your comment! Please check the force-push I just did! |
Contributor
|
Editors call: Great, thanks! |
bgloyer
added a commit
to bgloyer/CppCoreGuidelines
that referenced
this pull request
Jun 16, 2022
* F.16 ("in" parameters): Move Matrix example to F.20 (return values) (isocpp#1922)
The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters.
With help from Sergey Zubkov.
* SL.io.50 (Avoid `endl`): Mention string streams (isocpp#1920)
Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild.
With help from Sergey Zubkov.
* Extended E.16 to include copy ctor for exception type, closes isocpp#1921
* Fix GitHub Actions build warnings, Marker style should be `*` (isocpp#1925)
* restored reference
* Added references to note
Co-authored-by: Niels Dekker <N.Dekker@lumc.nl>
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
bgloyer
added a commit
to bgloyer/CppCoreGuidelines
that referenced
this pull request
Jul 9, 2022
* F.16 ("in" parameters): Move Matrix example to F.20 (return values) (isocpp#1922)
The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters.
With help from Sergey Zubkov.
* SL.io.50 (Avoid `endl`): Mention string streams (isocpp#1920)
Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild.
With help from Sergey Zubkov.
* Extended E.16 to include copy ctor for exception type, closes isocpp#1921
* Fix GitHub Actions build warnings, Marker style should be `*` (isocpp#1925)
* C.166: Use markdown format and document title for link (isocpp#1929)
* C.9: Improve an inline link (isocpp#1933)
Avoid ending the sentence with a dangling "see".
Co-authored-by: Niels Dekker <N.Dekker@lumc.nl>
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
Co-authored-by: Francisco Moretti <franciscoemoretti@gmail.com>
Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
bgloyer
added a commit
to bgloyer/CppCoreGuidelines
that referenced
this pull request
Jul 9, 2022
* Update CppCoreGuidelines.md * Update CppCoreGuidelines.md * Update isocpp.dic * use snake casing * sake case naming * C 32 comments (#3) * F.16 ("in" parameters): Move Matrix example to F.20 (return values) (isocpp#1922) The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters. With help from Sergey Zubkov. * SL.io.50 (Avoid `endl`): Mention string streams (isocpp#1920) Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild. With help from Sergey Zubkov. * Extended E.16 to include copy ctor for exception type, closes isocpp#1921 * Fix GitHub Actions build warnings, Marker style should be `*` (isocpp#1925) * restored reference * Added references to note Co-authored-by: Niels Dekker <N.Dekker@lumc.nl> Co-authored-by: Herb Sutter <herb.sutter@gmail.com> Co-authored-by: Niels Dekker <N.Dekker@lumc.nl> Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
bgloyer
added a commit
to bgloyer/CppCoreGuidelines
that referenced
this pull request
Jul 9, 2022
* F.16 ("in" parameters): Move Matrix example to F.20 (return values) (isocpp#1922)
The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters.
With help from Sergey Zubkov.
* SL.io.50 (Avoid `endl`): Mention string streams (isocpp#1920)
Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild.
With help from Sergey Zubkov.
* Extended E.16 to include copy ctor for exception type, closes isocpp#1921
* Fix GitHub Actions build warnings, Marker style should be `*` (isocpp#1925)
* C.166: Use markdown format and document title for link (isocpp#1929)
* C.9: Improve an inline link (isocpp#1933)
Avoid ending the sentence with a dangling "see".
* C 32 (#5)
* Update CppCoreGuidelines.md
* Update CppCoreGuidelines.md
* Update isocpp.dic
* use snake casing
* sake case naming
* C 32 comments (#3)
* F.16 ("in" parameters): Move Matrix example to F.20 (return values) (isocpp#1922)
The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters.
With help from Sergey Zubkov.
* SL.io.50 (Avoid `endl`): Mention string streams (isocpp#1920)
Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild.
With help from Sergey Zubkov.
* Extended E.16 to include copy ctor for exception type, closes isocpp#1921
* Fix GitHub Actions build warnings, Marker style should be `*` (isocpp#1925)
* restored reference
* Added references to note
Co-authored-by: Niels Dekker <N.Dekker@lumc.nl>
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
Co-authored-by: Niels Dekker <N.Dekker@lumc.nl>
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
Co-authored-by: Niels Dekker <N.Dekker@lumc.nl>
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
Co-authored-by: Francisco Moretti <franciscoemoretti@gmail.com>
Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
hsutter
added a commit
that referenced
this pull request
Jul 13, 2022
* Update CppCoreGuidelines.md * Update CppCoreGuidelines.md * Update isocpp.dic * use snake casing * sake case naming * C 32 comments (#3) * F.16 ("in" parameters): Move Matrix example to F.20 (return values) (#1922) The `Matrix` example and the notes about assignment appear off-topic in rule F.16, as F.16 is specifically about "in" parameters. With help from Sergey Zubkov. * SL.io.50 (Avoid `endl`): Mention string streams (#1920) Explicitly mentioned string streams as `endl` insertions into string streams do actually occur in the wild. With help from Sergey Zubkov. * Extended E.16 to include copy ctor for exception type, closes #1921 * Fix GitHub Actions build warnings, Marker style should be `*` (#1925) * restored reference * Added references to note Co-authored-by: Niels Dekker <N.Dekker@lumc.nl> Co-authored-by: Herb Sutter <herb.sutter@gmail.com> Co-authored-by: Niels Dekker <N.Dekker@lumc.nl> Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moved the
Matrixexample and the notes about assignment from rule F.16 (For "in" parameters, pass cheaply-copied types by value...) to rule F.20 (For "out" output values, prefer return values...).With help from Sergey Zubkov (@cubbimew).
Credits: My LKEB colleague Denis P. Shamonin (@dpshamonin) originally mentioned to me that the example appears off-topic, in the context of rule F.16.