Skip to content

Replacing a panic with an error return#26526

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

Replacing a panic with an error return#26526
spytheman merged 1 commit intovlang:masterfrom
sibkod:master

Conversation

@sibkod
Copy link
Contributor

@sibkod sibkod commented Feb 5, 2026

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

Copy link
Member

@spytheman spytheman left a comment

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