[Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour
Tomas.Matousek at microsoft.com
Thu Mar 5 16:03:18 EST 2009
I'm going to use single quotes for formatting CLR strings via inspect.
"clr:" prefix is too long and it gets in your way when working mostly with CLR strings.
>>> "Some string"
=> "Some string"
>>> "Some string".to_clr_string
=> 'Some string'
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barrère
Sent: Wednesday, March 04, 2009 12:15 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour
> I like the idea of showing System.String as clr:"xxx".
+1 for something like that - this way the failed assertions or people
using stdout for debug would not be fooled.
Ironruby-core mailing list
Ironruby-core at rubyforge.org
More information about the Ironruby-core