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

ti.field() returns a "field" class instead of taichi.lang.expr.Expr #2499

Closed
ljcc0930 opened this issue Jul 7, 2021 · 1 comment · Fixed by #2638
Closed

ti.field() returns a "field" class instead of taichi.lang.expr.Expr #2499

ljcc0930 opened this issue Jul 7, 2021 · 1 comment · Fixed by #2638
Labels
discussion Welcome discussion! refactor Refactor of API or codebases

Comments

@ljcc0930
Copy link
Contributor

ljcc0930 commented Jul 7, 2021

No description provided.

@ljcc0930 ljcc0930 added discussion Welcome discussion! refactor Refactor of API or codebases labels Jul 7, 2021
@ljcc0930 ljcc0930 changed the title [refactor] ti.field() returns a "field" class instead of taichi.lang.expr.Expr ti.field() returns a "field" class instead of taichi.lang.expr.Expr Jul 7, 2021
@k-ye
Copy link
Member

k-ye commented Jul 10, 2021

Looks very reasonable! Same goes for ti.Vector/ti.Matrix. Otherwise it's very un-intuitive to analyze whether we are dealing with a field or an actual expression.+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Welcome discussion! refactor Refactor of API or codebases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants