Skip to content
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

Closed

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Jul 25, 2017

Make implement an operator less noisy.

Make implement an operator less noisy.
Copy link
Member

@jacquesqiao jacquesqiao left a 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. */

Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@reyoung reyoung force-pushed the feature/add_namespace_using branch from 4bf1d90 to 0b4880b Compare July 26, 2017 06:18
@reyoung reyoung mentioned this pull request Jul 26, 2017
@reyoung reyoung force-pushed the feature/add_namespace_using branch from 0b4880b to ea99d71 Compare July 27, 2017 02:07
@reyoung reyoung force-pushed the feature/add_namespace_using branch from ea99d71 to 2463c1c Compare July 27, 2017 02:57
@reyoung reyoung closed this Jul 27, 2017
@reyoung
Copy link
Collaborator Author

reyoung commented Jul 27, 2017

Merged by PR #3067

@wangkuiyi
Copy link
Collaborator

I think we should revert this PR -- it confuses users from understanding where those important classes are defined.

@wangkuiyi wangkuiyi reopened this Aug 7, 2017
@dzhwinter dzhwinter mentioned this pull request Aug 7, 2017
@reyoung reyoung deleted the feature/add_namespace_using branch October 28, 2017 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants