Skip to content

Make WEBrick use frozen-string-literal#3560

Closed
kirs wants to merge 1 commit intoruby:masterfrom
kirs:webrick-frozen
Closed

Make WEBrick use frozen-string-literal#3560
kirs wants to merge 1 commit intoruby:masterfrom
kirs:webrick-frozen

Conversation

@kirs
Copy link
Copy Markdown
Contributor

@kirs kirs commented Sep 20, 2020

frozen_string_literal: true is in generally a good practice, and here it will make it easier to call some building blocks of WEBricks from places that require objects to be frozen (e.g. Ractors).

@jeremyevans
Copy link
Copy Markdown
Contributor

I'm fine with using frozen-string-literal, but please submit this pull request to the upstream repository: https://github.com/ruby/webrick/pulls

@kirs
Copy link
Copy Markdown
Contributor Author

kirs commented Sep 23, 2020

Got it. I was a bit confused because the source code is stored in ruby/ruby. What's the idea behind keeping it in both repos?

@jeremyevans
Copy link
Copy Markdown
Contributor

This is how all default gems are handled. Ruby ships with the files in the standard library, but the primary repository is separate so gem releases of default gems can be handled independently of Ruby releases.

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