You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I should have read the documentation better. I think the default argument should be missing by default. The current default behavior can lead to errors from careless users like myself (and let's be honest, there are many of us).
The issue with making the default missing is that this introduces unnecessary type complexity in many cases. If there are no missing values the returned element type is still Union{T, Missing} which may break downstream code. I'm not particularly bothered either way, that's the main reason we didn't make it the default.
Yeah, I totally see why you would want to not use missing if you know there are no missing values. But I guess I think it's better to fail obviously (with an error) than to produce incorrect values. One could even make an argument for requiring the default value be passed explicitly.
The minimal action would be to add a more salient warning to the documentation (both the README and the docstring). I can draft that if you like.
The result varies, but here's one example
I think the matrix should be initialized with an undefined value rather than an arbitrary value (maybe
missing
)?The text was updated successfully, but these errors were encountered: