[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>

>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:

17 messages 2000/11/14
[#6367] Re: rescue clause affecting IO loop behavior — David Alan Black <dblack@...> 2000/11/14

Hello again --

[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>

Hello --

15 messages 2000/11/26

[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>

Ross asked something about widely known and largely ignored language (on

23 messages 2000/11/29
[#6652] RE: Array Intersect (&) question — rpmohn@... (Ross Mohn) 2000/11/29

aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in

[#6723] Re: Array Intersect (&) question — Mathieu Bouchard <matju@...> 2000/12/01

> >Use a hash. Here's code to do both and more. It assumes that

[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)

I'm coming to Ruby with a Python & Common Lisp background.

24 messages 2000/11/30

[ruby-talk:6684] Re: printing/accessing arrays and hashes

From: cjon@... (Cullen J O'neill)
Date: 2000-11-30 22:10:05 UTC
List: ruby-talk #6684
Raja S. (raja@cs.indiana.edu) wrote:
[...]
>           Shouldn't 
>
>           [[1,2], [3,4]] . join(", ")   #-> "[[1,2], [3,4]]"
>
>           be the preferred behavior 


The problem with showing structure in join seems to me to be that

"Hello World".split(" ").join(" ") #-> "Hello World"

would get broken.  I for one would prefer not to have:

"Hello World".split(" ").join(" ") #-> "[Hello World]"

I personally have no problem using arr.inpect when I want to pretty
print an array. 

Maybe prety_print could be aliased to inspect?  <1/2 wink>


Cullen J O'Neill
--
cjon@engin.umich.edu

In This Thread