-
Notifications
You must be signed in to change notification settings - Fork 46
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 type assertions of the functions in src/composer.jl
.
#153
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #153 +/- ##
==========================================
- Coverage 86.59% 86.29% -0.31%
==========================================
Files 12 12
Lines 1626 1583 -43
==========================================
- Hits 1408 1366 -42
+ Misses 218 217 -1 ☔ View full report in Codecov by Sentry. |
I formatted to my favorite style:
but it is not absolute. |
I split this PR to type assertions and style formatting. |
372ce95
to
58c1fff
Compare
Now, this PR only includes type assertions. |
src/composer.jl
.src/composer.jl
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm certainly not against this in principle, but is there a compelling need for it? It does not (typically) improve speed, and in this case I think the argument names are pretty clear, so annotating them with types doesn't add much clarity.
I don't feel stongly, just something to consider.
It definitely won't make a difference to speed, but it adds a small amount of clarity and gives a faster error if you make a mistake when making code changes, so I think it's an improvement. |
I think this can be safely merged. @kescobo Can you merge this? |
Original title: Refactor
src/composer.jl
return
at the end of the function.