Skip to content
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

New iterators-over-indexing documentation #316

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

tomasavola
Copy link
Contributor

No description provided.

@tomasavola tomasavola added the documentation Improvements or additions to documentation label Aug 8, 2024
@tomasavola tomasavola self-assigned this Aug 8, 2024
Copy link

github-actions bot commented Aug 8, 2024

📘 Documentation Test Summary 📘

✅ The test build of the documentation has completed successfully!
📝 The changes will be published upon merge to the main branch.


Accessing a vector by index is slower than using an iterator. Also, if the index is out of bounds, it will panic.
When you iterate over a data structure with fixed limits, you might exceed the limit, causing a panic in the contract and other potential errors.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Una sugerencia para que quede un poquito más claro: "When you iterate over a data structure with fixed limits in a Soroban smart contract, exceeding those limits can cause the contract to panic, potentially leading to errors or unexpected behavior."

@matiascabello matiascabello merged commit a69cea8 into main Aug 12, 2024
2 checks passed
@matiascabello matiascabello deleted the migrate-iterators-over-indexing-documentation branch August 12, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants