OK, I thought that, but it just didn°«t make any sense.  So there is rhyme/reason behind it.  





> On May 22, 2017, at 7:58 AM, Jrg W Mittag <ruby-talk / joergwmittag.de> wrote:
> 
> Bee.Lists wrote:
>> BTW what is °»°…°…? Page 18 in def to_s
> 
> This is an obscure feature Ruby inherited from C: two string
> literals juxtaposed next to each other are parsed (actually, I
> believe this is even a lexer feature, i.e. happens *before*
> parsing) as one string literal, i.e.
> 
>    "foo" "bar"
> 
> is the same thing as
> 
>    "foobar"
> 
> So, this means that
> 
>    """foo"""
> 
> is the same as
> 
>    "" "foo" ""
> 
> which is the same as just
> 
>    "foo"
> 
> Why the author chose to use that obscure feature, I have no idea.
> It doesn°«t make the code easier to read, IMO, and it requires
> knowledge of an obscure feature of Ruby nobody actually uses.



Cheers, Bee





Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>