Skip to content

Replacing a panic with an error return - #26526

Merged
spytheman merged 1 commit into
vlang:masterfrom
sibkod:master
Feb 6, 2026
Merged

spytheman merged 1 commit into
vlang:masterfrom
sibkod:master

Conversation

@sibkod

@sibkod sibkod commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

To avoid crashing the program, it is better to return an error instead of panicking.

@spytheman spytheman left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent. You are 100% right.
Thank you @sibkod πŸ™‡πŸ» .

@spytheman
spytheman merged commit 90278d0 into vlang:master Feb 6, 2026
76 of 78 checks passed
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