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
??
Right now, in order to use ?? user have to use ?. instead of . in nested structures.
?.
.
events[0]?.labels?.value ?? 'defaul'
My idea is to make left hand side of ?? optional by default. So in case user written:
events[0].labels.value ?? 'defaul'
All member accesses to label/value/events will be optional. As well as array element access.
I really like this idea and think it makes much sense.
The text was updated successfully, but these errors were encountered:
Also implement opcode to do chained optional fetch
Sorry, something went wrong.
@antonmedv : I have addressed these issues in the pull request. Could you please review this PR #583
Cool! Will take a look!
No branches or pull requests
Right now, in order to use
??
user have to use?.
instead of.
in nested structures.My idea is to make left hand side of
??
optional by default. So in case user written:All member accesses to label/value/events will be optional. As well as array element access.
I really like this idea and think it makes much sense.
The text was updated successfully, but these errors were encountered: