making mutable objects immutable
Nobody has claimed this yet.
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
I was thinking about adding `hashTable MutableHashTable` to create a immutable copy, then it occurred to me whether it would be useful to have a O(1) way of making a mutable list or hash table immutable (e.g. instead of making a copy with `toList MutableList`, maybe we could have a special way to flip the mutable bit and return a List object).
_Originally posted by @mahrud in https://github.com/Macaulay2/M2/pull/4387#pullrequestreview-4406950081_
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the discussion in PR #4387 and identify the existing mutable-list and hash-table representations and conversion paths. Determine whether an O(1) mutability flip can preserve safety and API semantics; done requires a decided design plus accompanying implementation and tests.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100