Add const declerations to type aliases#289
Conversation
b6d55de to
e6743fc
Compare
|
It should in theory lead to type specialization and avoid runtime dispatch. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #289 +/- ##
=========================================
Coverage ? 91.86%
=========================================
Files ? 12
Lines ? 1672
Branches ? 0
=========================================
Hits ? 1536
Misses ? 136
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Could you add the the |
|
This is only cosmetic, as julia> using FixedPointNumbers, ColorTypes
julia> FixedColorant{T<:Normed} = Colorant{T}
ColorantNormed (alias for Colorant{T} where T<:Normed)
julia> isconst(Main, :FixedColorant)
trueThe key point is that all of these have curly braces That said, if you like the code better with the explicit declarations, we can merge this. |
|
Thanks for the explanation! |
Uh oh!
There was an error while loading. Please reload this page.