From: Hal Fulton Date: 2012-06-20T00:17:28+09:00 Subject: Re: Symbols and Strings... --e89a8f503c7ac6ca1804c2d4c799 Content-Type: text/plain; charset=ISO-8859-1 Personally, I don't have a problem with "reducing the contract" of a String. Freezing an object also reduces its contract. Hal On Tue, Jun 19, 2012 at 8:35 AM, Robert Klemme wrote: > On Tue, Jun 19, 2012 at 12:31 AM, Eric Hodel wrote: > > This happened (see thread at [ruby-core:9188]) but was reverted. I > can't think of the proper keywords to find the reason for the reversion. > > I one has Symbol inherit String then "is a" relationship is violated. > You cannot use the sub class where you can use the super class (e.g. > try to append to a frozen String). See David's remark > > http://ruby.11.n6.nabble.com/Bikeshed-No-more-Symbol-String-tp3558662p3558699.html > > Cheers > > robert > > -- > remember.guy do |as, often| as.you_can - without end > http://blog.rubybestpractices.com/ > > --e89a8f503c7ac6ca1804c2d4c799 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Personally, I don't have a problem with "reducing the contract&quo= t;
of a String. Freezing an object also reduces its contract.

Hal=

On Tue, Jun 19, 2012 at 8:35 AM, Robert = Klemme <shortcutter@googlemail.com> wrote:
On Tue, Jun 19, 2012 at 12= :31 AM, Eric Hodel <drbrain@segm= ent7.net> wrote:
> This happened (see thread at [ruby-core:9188]) but was reverted. =A0I = can't think of the proper keywords to find the reason for the reversion= .

I one has Symbol inherit String then "is a" relationship is= violated.
You cannot use the sub class where you can use the super class (e.g.
try to append to a frozen String). =A0See David's remark
http://ruby.11.n6.nabble.com/Bikeshed= -No-more-Symbol-String-tp3558662p3558699.html

Cheers

robert

--
remember.guy do |as, often| as.you_can - without end
http://blo= g.rubybestpractices.com/


--e89a8f503c7ac6ca1804c2d4c799--