Skip to content

feat: return 0 when casting an empty string to a number - #259

Merged
sagikazarmark merged 3 commits into
masterfrom
empty-string
May 31, 2025
Merged

sagikazarmark merged 3 commits into
masterfrom
empty-string

Conversation

@sagikazarmark

Copy link
Copy Markdown
Collaborator

Fixes #212

@sagikazarmark
sagikazarmark merged commit d11fd11 into master May 31, 2025
@sagikazarmark
sagikazarmark deleted the empty-string branch May 31, 2025 14:42
chouetz pushed a commit to DataDog/cast that referenced this pull request Apr 14, 2026
feat: return 0 when casting an empty string to a number
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.

cast.ToInt64E("") returns error while cast.ToInt64E(nil) doesn't

1 participant