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

allow recursive sum types #19

Merged
merged 4 commits into from
Apr 2, 2023
Merged

allow recursive sum types #19

merged 4 commits into from
Apr 2, 2023

Conversation

MasonProtter
Copy link
Owner

closes #15

This makes it so that we store basically a named tuple instead of the struct the user asked for. The memory layout hasn't changed, but this allows recursively defined sum types, and incidentally the benchmark from the README improved.

@codecov
Copy link

codecov bot commented Apr 2, 2023

Codecov Report

Merging #19 (3d1d9ca) into master (ca4f18a) will increase coverage by 1.44%.
The diff coverage is 96.15%.

❗ Current head 3d1d9ca differs from pull request most recent head b8bab52. Consider uploading reports for the commit b8bab52 to get more accurate results

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   95.65%   97.09%   +1.44%     
==========================================
  Files           3        3              
  Lines         230      241      +11     
==========================================
+ Hits          220      234      +14     
+ Misses         10        7       -3     
Impacted Files Coverage Δ
src/cases.jl 100.00% <ø> (ø)
src/SumTypes.jl 76.19% <66.66%> (+1.19%) ⬆️
src/sum_type.jl 98.73% <100.00%> (+2.68%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MasonProtter MasonProtter merged commit 4d255b2 into master Apr 2, 2023
8 checks passed
@ericphanson
Copy link

Awesome!

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.

Allow recursive definitions?
2 participants