Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove maplit dependency and stop using a macro for hashmaps #982

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Dekkonot
Copy link
Member

I'm tired of this macro. It will cause us trouble down the line when we try to swap to a faster hashmap, and it's just not idiomatic.

So, I have removed it. In practice this mostly impacts tests.

@Dekkonot Dekkonot added the type: tech debt Internal work that needs to happen label Oct 29, 2024
@Dekkonot Dekkonot added the skip changelog PRs that may skip the changelog enforcement check label Oct 29, 2024
@Dekkonot
Copy link
Member Author

Okay, there's a chance that this will just make adopting a new Hasher annoying. We shall see.

Copy link
Member

@kennethloeffler kennethloeffler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, maplit is pretty crusty and I'm glad to see it go.

Okay, there's a chance that this will just make adopting a new Hasher annoying. We shall see.

I think we should able to do .into_iter().collect() after adopting a different hasher, which isn't as compact as just .into(), but still not bad

@Dekkonot Dekkonot merged commit 34106f4 into rojo-rbx:master Oct 31, 2024
6 of 8 checks passed
@Dekkonot Dekkonot deleted the no-hashmap-macro branch October 31, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog PRs that may skip the changelog enforcement check type: tech debt Internal work that needs to happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants