# Breaking hash map changes for 0.8.0 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fc9430f56798a53f9393a697f4ccd6bf9981b970)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: fc9430f56798a53f9393a697f4ccd6bf9981b970

Requested commit: fc9430f56798a53f9393a697f4ccd6bf9981b970

Commit: fc9430f56798a53f9393a697f4ccd6bf9981b970

Tree: 69a1a3b359e970349f9466f85a370918d78b7217

Author: Martin Wickham

Committer: Martin Wickham

## Message

```
Breaking hash map changes for 0.8.0

- hash/eql functions moved into a Context object
- *Context functions pass an explicit context
- *Adapted functions pass specialized keys and contexts
- new getPtr() function returns a pointer to value
- remove functions renamed to fetchRemove
- new remove functions return bool
- removeAssertDiscard deleted, use assert(remove(...)) instead
- Keys and values are stored in separate arrays
- Entry is now {*K, *V}, the new KV is {K, V}
- BufSet/BufMap functions renamed to match other set/map types
- fixed iterating-while-modifying bug in src/link/C.zig

```

## Parents

- [87dae0ce98fde1957a9290c22866b3101ce419d8](https://git.cafe/gitcafe/zig/commit/87dae0ce98fde1957a9290c22866b3101ce419d8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/fc9430f56798a53f9393a697f4ccd6bf9981b970?format=markdown)
