Skip to content

Conversation

@sjakobi
Copy link
Member

@sjakobi sjakobi commented Oct 30, 2025

...due to its tendency to create thunks.

In a few cases it was possible to avoid forcing the returned
array element, e.g. in insertNewKey and deleteKeyExists.

Fixes #538.

...due to its tendency to create thunks.

Fixes #538.
@treeowl
Copy link
Collaborator

treeowl commented Oct 31, 2025

Hrmmm.... I'm not sure this is any clearer, TBH.

@sjakobi
Copy link
Member Author

sjakobi commented Oct 31, 2025

Well, at least it's more clear that we don't produce the thunks I mentioned in #538 with this approach.

The verbosity is a downside, but I think it's a reasonable trade-off.

@sjakobi sjakobi merged commit 5ce9758 into master Nov 1, 2025
9 checks passed
@sjakobi sjakobi deleted the sjakobi/issue538 branch November 1, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

D.HM.I.Array.index causes thunks

3 participants