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

use new instead of T() #260

Merged
merged 8 commits into from
Dec 1, 2020
Merged

use new instead of T() #260

merged 8 commits into from
Dec 1, 2020

Conversation

JonasIsensee
Copy link
Collaborator

v0.3.0 introduced a bug in that functions can no longer be reconstructed. (#258)

The offending thing was essentially to try typeof(f)() to get the function from its type.

With this change it seems to work but I have no absolutely no idea whether this is a good idea or not.

Any ideas or recommendations ?

@codecov
Copy link

codecov bot commented Nov 18, 2020

Codecov Report

Merging #260 (8500838) into master (d6bd508) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
- Coverage   90.57%   90.57%   -0.01%     
==========================================
  Files          21       21              
  Lines        2420     2430      +10     
==========================================
+ Hits         2192     2201       +9     
- Misses        228      229       +1     
Impacted Files Coverage Δ
src/data.jl 84.80% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6bd508...8500838. Read the comment docs.

@JonasIsensee
Copy link
Collaborator Author

Since this approach is already in use inside BSON and it passes all existing plus new tests
I will merge this now.

@JonasIsensee JonasIsensee merged commit 438395f into master Dec 1, 2020
@JonasIsensee JonasIsensee deleted the reconstructfunctions branch December 1, 2020 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant