We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, primitive properties on the right side of a lookup will return a default primitive value for a null-safe operation.
user = null as User; user?.age // returns 0 if age is defined as int getAge()
This may be better off returning null and always an Object wrapper so that you can differentiate between invalid (null) and valid (potentially 0).
The text was updated successfully, but these errors were encountered:
+1 for returning null and hiding the Java concept of primitives from Tea
On Sep 28, 2012, at 10:57 PM, Nicholas Hagen notifications@github.com wrote:
— Reply to this email directly or view it on GitHubhttps://github.com//issues/198.
Sorry, something went wrong.
No branches or pull requests
Currently, primitive properties on the right side of a lookup will return a default primitive value for a null-safe operation.
This may be better off returning null and always an Object wrapper so that you can differentiate between invalid (null) and valid (potentially 0).
The text was updated successfully, but these errors were encountered: