[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78880] Re: [Ruby trunk Feature#13077] [PATCH] introduce String#fstring method
From:
Eric Wong <normalperson@...>
Date:
2016-12-27 23:39:26 UTC
List:
ruby-core #78880
eregontp@gmail.com wrote: > So this is essentially like Java's String.intern()? > > There is already String#intern in Ruby but it returns a Symbol. > Depending on the use-case, I guess this might be less convenient than getting a de-duplicated String. Yeah, I considered using intern/to_sym for my use case; but the problem is it that still creates a new string object whenever it needs to be written/printed/concatenated. And I also feel using symbol like this is ugly (just a gut feeling), despite having GC-able symbols since 2.2. > String#dedup or sounds better than #fstring. Yes. Lets wait for Matz to comment. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>