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

add -d:nimLegacyNoHashRef for a transition period which avoids defining hash(ref) #17858

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 26, 2021

refs #17731 (comment)

affected users can opt-out with -d:nimLegacyNoHashRef for a transition period (say, in their user or project config)

@timotheecour timotheecour force-pushed the pr_17731_followup_hash_ref_optout branch from 743be21 to 0e5a03b Compare April 26, 2021 18:19
@Araq Araq merged commit 3f58b7f into nim-lang:devel Apr 27, 2021
@timotheecour timotheecour deleted the pr_17731_followup_hash_ref_optout branch April 27, 2021 06:41
@arnetheduck
Copy link
Contributor

This does not resolve the issue really, of breaking working code in minor releases - the new hash function must be opt-in in order for that to happen - hash is an critical function and this remains a high-risk change, the consequences of which are poorly understood and analyzed.

@arnetheduck
Copy link
Contributor

Also, this creates two dialects of a critical library feature, again making it impossible to use practically in applications - the only way to compatibly introduce this feature is to introduce a separate module with the new hash function, such that the change is opt-in and local.

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.

3 participants