Skip to content

Make nested arrays a bit safer, don't count on null arrays#18

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:wip-array-array-nil
Apr 7, 2026
Merged

Make nested arrays a bit safer, don't count on null arrays#18
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:wip-array-array-nil

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 7, 2026

Maybe a little over protective, but I think this is nice to do since crashes across languages are so painful to debug -- and i've hit this myself just now.

Move referring to value below the guarded unwrap

@ktoso ktoso changed the title Make nester arrays a bit safer, don't count on null arrays Make nested arrays a bit safer, don't count on null arrays Apr 7, 2026
@ktoso ktoso force-pushed the wip-array-array-nil branch 2 times, most recently from 91ee90a to b05ff89 Compare April 7, 2026 13:48
@ktoso ktoso force-pushed the wip-array-array-nil branch from b05ff89 to 59ed3e2 Compare April 7, 2026 13:49
@ktoso ktoso merged commit 28c3665 into swiftlang:main Apr 7, 2026
49 of 50 checks passed
@ktoso ktoso deleted the wip-array-array-nil branch April 7, 2026 13:57
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.

1 participant