[#76442] [Ruby trunk Feature#11741] Migrate Ruby to Git from Subversion — naruse@...
Issue #11741 has been updated by Yui NARUSE.
3 messages
2016/07/19
[#76515] [Ruby trunk Bug#12610] webrick: protect from httpoxy — nagachika00@...
Issue #12610 has been updated by Tomoyuki Chikanaga.
3 messages
2016/07/22
[ruby-core:76457] [Ruby trunk Feature#12334] Final/Readonly Support for Fields / Instance Variables
From:
shyouhei@...
Date:
2016-07-20 01:49:13 UTC
List:
ruby-core #76457
Issue #12334 has been updated by Shyouhei Urabe. FYI we looked at this issue at yesterday's developer meeting. I tried to support this for being a potential optimization hint, but failed because another attendee claimed we should focus to the feature as a language, not its implementation. We didn't reach any consensus whether we should accept or reject this, though. ---------------------------------------- Feature #12334: Final/Readonly Support for Fields / Instance Variables https://bugs.ruby-lang.org/issues/12334#change-59700 * Author: Brady Wied * Status: Open * Priority: Normal * Assignee: ---------------------------------------- This sort of relates to https://bugs.ruby-lang.org/issues/11911 C# through 'readonly' and Java through 'final' variables/fields allow me to only allow assigning a field in the initializer. It might be nice to embrace some controlled mutation by having this feature in Ruby. Sometimes its tempting in other methods to reassign a field but you really want to control that from the initializer. Freezing targets a different problem by controlling what I can mutate within that field's object. The two can compliment each other but I see them as each solving a different problem. I know it's possible to freeze an entire instance of a class and not allow reassigning the field that way, but then I'm in an all or none situation where I can't have controlled mutation. -- 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>