Project

General

Profile

Feature #14680

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

Since we have `-@` @- and `+@` @+ for strings and it's very useful (and reads better than `.freeze`) .freeze) I'd like to propose adding the same API to hash and array. Especially with constants, linters are always telling me to freeze them, and I'd like to be able to accomplish that with `-@`. @-. I've attached the necessary code to make that happen.

Back