[#97678] [Ruby master Feature#16752] :private param for const_set — bughitgithub@...
Issue #16752 has been reported by bughit (bug hit).
5 messages
2020/04/02
[ruby-core:98006] [Ruby master Misc#16802] Prefer use of RHS assigment in documentation
From:
grzegorz.jakubiak@...
Date:
2020-04-21 22:06:42 UTC
List:
ruby-core #98006
Issue #16802 has been updated by greggzst (Grzegorz Jakubiak). Eregon (Benoit Daloze) wrote in #note-4: > I think we should wait that RHS assignment is no longer experimental. > > As I see it, it might get similar backlash as the pipeline operator and might still be removed (personally I don't like RHS assignment, I find it confusing and less readable). I agree and I’m not a big fan neither. It seems to me that for some time there’s been accepting and immediately merging some changes that aren’t necessary instead of focusing on more important stuff. Hope this is removed in the near future. ---------------------------------------- Misc #16802: Prefer use of RHS assigment in documentation https://bugs.ruby-lang.org/issues/16802#change-85237 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal * Assignee: ioquatix (Samuel Williams) ---------------------------------------- Many documentation uses some format like this: ``` Hash.new -> hash ``` Now that RHS assignment is a thing, we can make the documentation valid Ruby code: ``` Hash.new => hash ``` There is some discussion here: https://github.com/ruby/ruby/pull/3026 I would like to start changing the existing documentation to use this, and in addition, make an automated sweep of the entire code base to update to the new syntax. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>