-
Notifications
You must be signed in to change notification settings - Fork 53
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
Is there a reason why we cannot have a getter for array items? #552
Comments
CC: @shirchen |
Hey, sorry for delay in responding. I like this feature and have benefited from python's My question is what we need to return if a field isn't there. Do you return nil? What if someone is doing So I can go both ways on this proposal, and philosophically, I think its sometimes easier to keep things simple. Let me know what you think. |
Hey, thank you for getting back to me. |
I like the idea of safe autogenerated getters. But every time I have to check the length of an array I am confused as this job is so routine and dumb that is a perfect match for a autogenerated wrapper.
Consider example
can become
All we need is to generate array getter like this:
Is there any fundamental reasons why we cannot have array getters like this or nobody just got to do it?
The text was updated successfully, but these errors were encountered: