godot icon indicating copy to clipboard operation
godot copied to clipboard

Iterator improvements

Open AThousandShips opened this issue 1 year ago • 1 comments

  • Nullability safety for increment/decrement
  • Style improvements

These are minor fixes and mostly style but also ensures iteration doesn't throw segfault when iterating past the end, this matches how it is done in HashMap which makes sense to apply everywhere IMO

Can limit it to just null fixes if desired 🙂

AThousandShips avatar Dec 28 '23 10:12 AThousandShips

Looks good. I'd only suggest using likely().

RandomShaper avatar Dec 28 '23 13:12 RandomShaper