-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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_alias to import framework into ops #3048
Conversation
Make implement an operator less noisy.
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.
LGTM!
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. */ | ||
|
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.
It seems tricky to flatten namespace in this way. But it simplifies some lines of code truly, shall we put the necessary using
declaration in the head lines in every source file?
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.
Most operators are common about what they used. Just declare them in a common file.
If we declare them into every source file, it could be redefined error when some of them depends on each other. Like
// op_a.h
using XXX = ...;
#include "a.h"
using XXX = ...; // redefined error.
4bf1d90
to
0b4880b
Compare
0b4880b
to
ea99d71
Compare
ea99d71
to
2463c1c
Compare
Merged by PR #3067 |
I think we should revert this PR -- it confuses users from understanding where those important classes are defined. |
Make implement an operator less noisy.