I am OK with this change. Does anyone else have opinon on this?
E.g. compatibility issue?
I don't use CMath, but I suggest a deprecation period since it appears
this is a public API. We should never break public API without adequate
warning.
Maybe:
deprecate at 2.3.0
remove when 2.3 branch is EOL for backports/releases
I don't use CMath, but I suggest a deprecation period since it appears
this is a public API. We should never break public API without adequate
warning.
Maybe:
deprecate at 2.3.0
remove when 2.3 branch is EOL for backports/releases
Thanks for comment! I suppose these methods(Math.cos!, sin!..) got public by accident, but your point dose really make sense.
Here is a patch to deprecate these methods.
i know this ticket got closed by the change of gogo,
but i want to ask (maybe in a different ticket later)
if its would be ok to have a deprecate_methods function like the deprecate_constant method in core?
lib/cmath.rb: methods which has suffix '!' are now deprecated.
Re-apply r52469 made by Kazuki Tanaka, with fixing bug about
mathn.rb compatibility. [ruby-core:68528] [Feature #10974]