Skip to content

Comments

Add support for null safe field access#127

Merged
ncannasse merged 5 commits intoHaxeFoundation:masterfrom
yuxiaomao:dev-nullsafefield
May 31, 2024
Merged

Add support for null safe field access#127
ncannasse merged 5 commits intoHaxeFoundation:masterfrom
yuxiaomao:dev-nullsafefield

Conversation

@yuxiaomao
Copy link
Contributor

For syntax: pt?.x.

@ncannasse ncannasse merged commit b92fcae into HaxeFoundation:master May 31, 2024
@yuxiaomao yuxiaomao deleted the dev-nullsafefield branch May 31, 2024 10:54
@ncannasse
Copy link
Member

I just noticed that this is not correct/complete, the following are not working:

pt?.sub.x should be null if pt is null
pt?.call() should not call (return null) if pt is null

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

Successfully merging this pull request may close these issues.

2 participants