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

Return String should be nullable, no? #309

Open
kevmoo opened this issue Sep 29, 2024 · 1 comment
Open

Return String should be nullable, no? #309

kevmoo opened this issue Sep 29, 2024 · 1 comment

Comments

@kevmoo
Copy link
Member

kevmoo commented Sep 29, 2024

external String operator [](String name);

CC @srujzs

@srujzs
Copy link
Contributor

srujzs commented Sep 30, 2024

This is similar to #181. The IDL claims the return type is non-nullable, but naturally it would be nice to coerce missing values to null instead of a cast failure. I'm not sure if the behavior is similar everywhere a getter is declared in the IDL to make that change. The current solution is using has to check for existence.

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

No branches or pull requests

2 participants