[ruby-core:69869] Re: [Ruby trunk - Bug #11326] Defining a writer as a Struct member allowed?

From: Eric Wong <normalperson@...>
Date: 2015-07-04 04:38:12 UTC
List: ruby-core #69869
nobu@ruby-lang.org wrote:
> Eric Wong wrote:
> > I suggest banning it (barely-tested patch):
> 
> +1

OK with matz to commit my patch? (+ tests)?

Also, what about '?' and '!' in field names?
Can we continue to allow those?
I guess the following work in existing code:

	s[:foo?] = :bar
	s[:foo!] = :bar

In This Thread

Prev Next