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

Remove safe navigation macro #128

Merged
merged 2 commits into from
Aug 5, 2024
Merged

Remove safe navigation macro #128

merged 2 commits into from
Aug 5, 2024

Conversation

RblSb
Copy link
Member

@RblSb RblSb commented Jul 30, 2024

Only code change here is data?.index.sure(); to (data?.index).sure(); to make index non-nullable because of compiler error. Wonder if this is save nav flaw
https://github.com/RealyUniqueName/Safety/blob/8b0fb7e098ee64176a9e0d3697a91f472183a3ba/src/Safety.hx#L26

@kLabz kLabz self-requested a review July 30, 2024 21:21
Copy link
Contributor

@kLabz kLabz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will also check output changes to be safe

vshaxe-build.json Show resolved Hide resolved
@kLabz
Copy link
Contributor

kLabz commented Aug 5, 2024

Output seems ok (better than before in some cases, even), main differences being it's now checking for != null, and avoiding tmp variables when not needed.

@AlexHaxe AlexHaxe merged commit 90dc446 into vshaxe:master Aug 5, 2024
2 checks passed
@AlexHaxe
Copy link
Member

AlexHaxe commented Aug 5, 2024

thanks!

@RblSb RblSb deleted the unsafety branch August 5, 2024 13:00
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.

3 participants