
Issue #18070 has been updated by rubyFeedback (robert heiler). There may be backwards compatibility considerations. Personally I never use attr. I use the longer variants, but even these I use less often compared to older code. I tend to put variables for larger classes into an internal hash usually these days. Perhaps if backwards compatibility is a concern, there should be a deprecation window announced, before it may then be removed (if it is decided to remove it)? ---------------------------------------- Feature #18070: `attr` should be removed https://bugs.ruby-lang.org/issues/18070#change-102008 * Author: schwad (Nick Schwaderer) * Status: Open * Priority: Normal ---------------------------------------- I'm digging through some older Ruby versions and discovered that `attr` was deprecated in Ruby 1.9. We still are seeing support for it in Ruby 3.0 Unless there are internals that require its existence, is it time to remove this deprecated feature? If there's agreement, I'm more than happy to fire up the PR myself. (Also happy to be corrected if there's something I'm missing here :) ) -- https://bugs.ruby-lang.org/