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

[Refactor] [lang] Add "ti.field" and "ti.Matrix.field" for future deprecation of "ti.var" #1502

Merged
merged 5 commits into from
Jul 16, 2020

Conversation

archibate
Copy link
Collaborator

@archibate archibate changed the title [Lang] Add "ti.field" and "ti.Matrix.field" for future deprecation of "ti.var" [Refactor] [lang] Add "ti.field" and "ti.Matrix.field" for future deprecation of "ti.var" Jul 15, 2020
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@@ -285,8 +285,14 @@ def __repr__(self):
root = Root()


@python_scope
#@deprecated('ti.var', 'ti.field')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these @deprecated commented out on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't want to throw out tons of warnings yet, before it's fully deprecated from tests and examples. The #@ is just a reminder, this is to be deprecated in the future.

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks and LGTM in general. Could you clarify a bit on why the @deprecateds are commented out?

@archibate
Copy link
Collaborator Author

Thanks and LGTM in general. Could you clarify a bit on why the @deprecateds are commented out?

Please see #1500, we will only uncomment this after all docs, tests, examples, are adopt to ti.field, for now they're just a reminder.

@archibate archibate requested a review from yuanming-hu July 16, 2020 14:55
Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, and thanks for the clarification. It would be nice to mention these in the PR body next time so that people won't question you :-)

@yuanming-hu yuanming-hu merged commit 05f7637 into taichi-dev:master Jul 16, 2020
This was referenced Jul 16, 2020
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