From: "kyledecot (Kyle Decot)" Date: 2013-06-04T02:49:46+09:00 Subject: [ruby-core:55280] [ruby-trunk - Feature #8462] Module.remove_const inconsistant naming Issue #8462 has been updated by kyledecot (Kyle Decot). kyledecot (Kyle Decot) wrote: > I understand that it's a dangerous operation but how does naming it inconsistently make any less so other than making it difficult to find in the documentation? The fact that it's a private method I would think should be protection enough from accidental usage. > > matz (Yukihiro Matsumoto) wrote: > > remove is a dangerous operation, thus named inconsistent, as remove_instance_variable etc. > > > > Matz. ---------------------------------------- Feature #8462: Module.remove_const inconsistant naming https://bugs.ruby-lang.org/issues/8462#change-39678 Author: kyledecot (Kyle Decot) Status: Rejected Priority: Normal Assignee: Category: core Target version: The Module class in Ruby has several methods for dealing w/ constants: const_set const_get const_defined? const_missing remove_const The last of which is inconsistently named. I propose that we deprecate this method and create a new one called const_unset (as it's the counterpart to const_set). -- http://bugs.ruby-lang.org/