Rack: Frozen String LIteral changes

Created on 20 Mar 2018  路  5Comments  路  Source: rack/rack

Looks like there have been multiple PRs opened relating to migrating the codebase to using #frozen_string_literal: true in order to prevent unnecessary string allocations. Unfortunately, only 1 that I saw has been merged and it only updated 1 file. Can any of the maintainers speak to why the others haven't gotten merged? I'm willing to help out with any extra changes desired to make this happen.

https://github.com/rack/rack/pull/1182
https://github.com/rack/rack/pull/1023

cc: @pat @twalpole (thanks for your PRs!)

Most helpful comment

@oniofchaos yes, I'm interested in adding the pragma directive to all of Rack.

All 5 comments

I see https://github.com/rack/rack/pull/1203 got merged but it doesn't look like it's in any of the tagged versions?

@oniofchaos Maintainers just didn't seem interested

@tenderlove thanks for merging #1182, would there be interest in a PR that adds the pragma to more files? If so I am happy to submit.

@oniofchaos yes, I'm interested in adding the pragma directive to all of Rack.

I think everything has the frozen string directive. Can this be closed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rkh picture rkh  路  9Comments

mwpastore picture mwpastore  路  3Comments

antonpaisov picture antonpaisov  路  14Comments

ioquatix picture ioquatix  路  5Comments

dmitry picture dmitry  路  6Comments