Skip to content

Replace Time::Span::ZERO with .zero - #17217

Open
straight-shoota wants to merge 1 commit into
crystal-lang:masterfrom
straight-shoota:refactor/time-span-zero
Open

Replace Time::Span::ZERO with .zero#17217
straight-shoota wants to merge 1 commit into
crystal-lang:masterfrom
straight-shoota:refactor/time-span-zero

Conversation

@straight-shoota

Copy link
Copy Markdown
Member

The constant is unnecessary and can cause extra overhead. We can cheaply construct an instance instead.

See #17215

Depends on #17216 to effectively avoid the constant.

@ysbaddaden ysbaddaden added this to the 1.22.0 milestone Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants