Shopify / measured

Encapsulate measurements and their units in Ruby and Ruby on Rails.
MIT License
337 stars 28 forks source link

Make Measurable and Unit immutable objects #42

Closed thegedge closed 7 years ago

thegedge commented 7 years ago

Immutability will allow us to more easily introduce certain performance optimizations (e.g., https://github.com/Shopify/measured/pull/29), and makes these classes easier to understand and reason about.

Closes https://github.com/Shopify/measured/issues/30 Closes https://github.com/Shopify/measured/issues/37

@kmcphillips @benwah