- Notifications
You must be signed in to change notification settings - Fork4k
Update Map usage explanation in article.md#3903
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Clarify the correct usage of Map methods and explain the implications of using map[key].
CLAassistant commentedNov 10, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
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.
Pull Request Overview
This PR improves the documentation about Map usage by clarifying what happens when using bracket notation (map[key]) instead of the proper Map methods. The update replaces a brief warning with a detailed explanation and concrete code example.
Key changes:
- Expanded explanation of why
map[key]should be avoided, clarifying that it adds properties to the Map object itself rather than storing data in the Map collection - Added a practical code example demonstrating the difference between bracket notation and proper Map methods
💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.
Uh oh!
There was an error while loading.Please reload this page.
Accepted the changes from the reviewCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Clarify the correct usage of Map methods and explain the implications of using map[key].