Skip to content

Conversation

@crStiv
Copy link

@crStiv crStiv commented Mar 11, 2025

This PR improves error handling in DensityTracker by:

  • Adding new set_density() method with proper bounds checking and error handling
  • Marking inc() as deprecated with migration path
  • Adding detailed error messages with index/length context
  • Adding documentation with examples

The changes are backwards compatible and improve safety by eliminating potential panics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant