Repository navigation
stdlib: fold IntMap probe helpers into methods - #210
Merged
Merged
Conversation
Nested `&self` calls work after the receiver TYP_REF fix, so the free-function workaround is no longer needed. findKey/findSlot become methods; grow/put/get/has/remove call them directly. No behavior change; test_intmap passes and selfhost-tests stays green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
嵌套
&self方法调用的 backend 缺陷已由 #209 修复;IntMap不再需要“只调用自由函数”的绕行写法。intMapFindKey/intMapFindSlot折叠为IntMap.findKey/IntMap.findSlot。grow/put/get/has/remove直接调用self.findKey(...)/self.findSlot(...)。行为不变;
test_intmap.py通过,selfhost-tests全绿。