From: "byroot (Jean Boussier)" Date: 2022-07-28T12:07:31+00:00 Subject: [ruby-core:109356] [Ruby master Feature#18930] Officially deprecate class variables Issue #18930 has been updated by byroot (Jean Boussier). > If you don't want that to be public API it could be :nodoc: or made private + using send. Yes that's what I say in my comment, and I see how some users may find this unsatisfactory. ---------------------------------------- Feature #18930: Officially deprecate class variables https://bugs.ruby-lang.org/issues/18930#change-98500 * Author: Eregon (Benoit Daloze) * Status: Open * Priority: Normal ---------------------------------------- Ruby's class variables are very confusing, and it seem many people agree they should be avoided (#18927). How about we deprecate them officially? Concretely: * Mention in the documentation that class variables are deprecated and should be avoided/should not be used. * Add a parse-time deprecation warning, now that we only see those with `Warning[:deprecation] = true` it seems reasonable to add. -- https://bugs.ruby-lang.org/ Unsubscribe: