-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make Core.checked_dims
public
#54327
Comments
Any examples of such implementations that folks had to reimplement? |
|
It also turned out to be occasionally useful just inside base, if you grep a bit (it is roughly equivalent to |
IMO it would be a bit weird to export FTR the function in FSA also supports just |
Yes, we'd need to make it a bit more generic and move it to Base. |
This is not a rule, e.g.: julia> map(BigInt, 1:7)
1:7
julia> typeof(size(ans))
Tuple{BigInt} |
A package proposing a common implementation is up on the JuliaArrays Github: https://github.com/JuliaArrays/CheckedSizeProduct.jl It's not registered yet, consider it as an RFC. Some relevant discussion might appear here: JuliaArrays/FixedSizeArrays.jl#89 |
Lovely! Please respond or re-open if https://github.com/JuliaArrays/CheckedSizeProduct.jl does not work out or proves insufficient. |
It turns out it's nontrivial to implement
Core.checked_dims
(e.g. #54255). I want it to be public from base so folks don't have to re-implement it in packages.The text was updated successfully, but these errors were encountered: