You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@enumag uses a neat trick to unset public properties of an object, see this gist
This way magic __get and __set methods of the object are called instead and they can enforce immutability.
This mechanism can even be deactivated in production for performance reasons and it can be combined with the ImmutableRecord logic used for immutable data types in Event Machine powered projects.
To be able to use immutable data types without installing Event Machine, the package should be moved to its own repo.