Skip to content

v0.2.7

Compare
Choose a tag to compare
@illuxiza illuxiza released this 29 Dec 09:49
· 68 commits to main since this release

v0.2.7

New Features

Vector Enhancements

  • Added append method for vector concatenation
  • Added reverse method for reversing vector elements

Enum System Improvements

  • Added Enums.create() for dynamic enum creation with custom variants
  • Introduced type-safe variant check methods (isA(), isB(), etc.) for better IDE support
  • Added clone support with deep cloning of variant arguments
  • Made enum constructors public
  • Renamed equals() to eq() for better Rust alignment
  • Enhanced modify() method with more flexible error handling

Optimizations & Refactoring

Trait System

  • Optimized parent trait collection and type inference
  • Reordered static trait implementation before method checks
  • Improved trait implementation lookup to include inherited methods

HashMap Improvements

  • Refactored iterator implementation to use index-based bucket traversal
  • Changed #keysEqual from private field to private method for better encapsulation

This release series brings significant improvements to the collections and trait system, with a focus on enum functionality, better type safety, and performance optimizations.