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

Refactor destruct in Core/Extra/Base #1522

Merged
merged 1 commit into from
Sep 7, 2022
Merged

Conversation

lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Sep 7, 2022

I added field names. I didn't break the cases into separate functions because I think we might care a bit about the constant-factor efficiency of this function since it is called at every step in each recursor. The efficiency difference is probably not big (especially if GHC manages to inline some of the functions and avoid the extra allocation due the UNPACK pragma, but it's unclear if it would do that in all cases), but the readability gain doesn't seem to be that big either (personally, I don't see much point, but that's a subjective opinion).

@lukaszcz lukaszcz added this to the 0.2.5 milestone Sep 7, 2022
@lukaszcz lukaszcz added refactor core Related to JuvixCore labels Sep 7, 2022
@janmasrovira janmasrovira merged commit f5402aa into main Sep 7, 2022
@janmasrovira janmasrovira deleted the refactor-destruct branch September 7, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to JuvixCore refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants