-
-
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
Rename promote_rule -> Promote.rule #23999
Comments
Should be possible for 1.0 though? |
But if we can't use it for 0.7, can we use it for 1.0? |
|
For a little bit more context, at #20815 I propose another promotion mechanism for array concatenation, which could be called However, |
It doesn't fully make sense to me that |
So should we go with namespacing by underscore then, and have Broadcast export Base.Broadcast.broadcast_rule(...) = ... but Base.broadcast_rule(...) = ... seems OK. |
Seems like there's consensus, I'll close. |
I am pretty sure that
promote_rule
andpromote_type
derive from an era before we had modules. Following up on #23939 (comment), the suggestion is to not use "namespacing by underscoring" and just use namespacing directly.promote.jl
could define aPromote
module and exportpromote
but notrule
, so that users would writePromote.rule
. (#23939 is planning to introduceBroadcast.rule
.)There's one huge hitch with this suggestion:
promote_type
should becomePromote.type
, and you can't define a function calledtype
. We could call itPromote.typejoin
and have it fall back toBase.typejoin
.The text was updated successfully, but these errors were encountered: