Skip to content

Use WeakRef instead of ObjectSpace::WeakMap? #91

@nirvdrum

Description

@nirvdrum

Mustermann::EqualityMap uses ObjectSpace::WeakMap directly in its implementation. According to the docs for ObjectSpace::WeakMap, that class should not be used directly:

This class is mostly used internally by WeakRef, please use lib/weakref.rb for the public interface.

Of course, it exists and works, but using WeakRef instead looks like the safer option.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions