Skip to content

Extract File.match? to separate source file#15574

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/extract-file-match
Mar 22, 2025
Merged

Extract File.match? to separate source file#15574
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/extract-file-match

Conversation

@straight-shoota
Copy link
Member

The implementation of File.match? is a distinct algorithm and not directly related to the rest of file.cr.
Extracting it to its own file ensures better separation of concerns and focus on individual features.

@straight-shoota straight-shoota added this to the 1.16.0 milestone Mar 20, 2025
@straight-shoota straight-shoota merged commit 47cf9ab into crystal-lang:master Mar 22, 2025
32 of 34 checks passed
@straight-shoota straight-shoota deleted the refactor/extract-file-match branch March 22, 2025 10:17
antondalgren added a commit to antondalgren/crystal that referenced this pull request Jan 23, 2026
I decided to go with #protocol and protocols instead of subprotocols as
was selected in crystal-lang#16574. The decision was based on the JavaScript WebSocket API
which uses #protocol to read the negotiated subprotocol, if any.

Part of crystal-lang#15574
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