forked from vuejs/vue-router
-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de advanced/scroll-behavior.md
#11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peux tu m'indiquer d'autres endroit dans les documentations ou la majuscule est utilisée ? Sinon remet les minuscules
Car dans beaucoup de documentation, la lettre majuscule est utilisée car les relecteurs font soit référence au « Primitif Type Number » ou « Primitif Type String » ou alors parce qu'ils ne connaissent pas suffisamment le JavaScript et se réfèrent à leur habitude class object-oriended et non prototype object-oriented.
Une manière conventionnelle d'écrire le typage des primitives est celui retournée par typeof sur une primitive « number », « string » « boolean » sans majuscule pour bien différencier de l'instance d'« object »
new Object()
ou{}
// opérandeobject
(typeof) d'instanceObject
(instanceof)new String("Coucou")
// opérandeobject
(typeof) d'instanceString
(instanceof)"Coucou"
ounew String("Coucou").valueOf()
ounew String("Coucou").toString()
// opérande primitif de typestring
(typeof)Aussi pour moi ils font bien référence à une primitive. Mais si tu as vu ça ailleurs, dit moi !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour l'explication !
Pendant la traduction dans mes précédentes PR, j'ai remarqué qu'« Array » était utilisé en tant que "simple nom", et non pour définir le type d'une variable => https://github.com/vuejs-fr/vue-router/pull/7/files#diff-64b2b82de4b10a5b398aaee86543b445L69
Je vais repasser aux minuscules
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. il faisait donc référence à l'« instanceof »
Array
d'un « typeof »object
. On conserve bien les minuscules.