[#2320] Problems in mathn, rational, complex, matrix — Gavin Sinclair <gsinclair@...>
I received a message from Richard Graham mentioning a problem in the
[#2346] Patch for socket.c: control reverse lookup for every instance — Thomas Uehlinger <uehli@...>
Hi all
[#2357] Use the BasicSocket#do_not_reverse_lookup flag in Webrick — Thomas Uehlinger <uehli@...>
Hi
[#2367] Standard libraries — Dave Thomas <dave@...>
From ruby-dev summary:
Hi,
Hi,
By the way, this issue is about a matter of taste, so the debate is somewhat
Hi,
On Thu, Feb 12, 2004 at 02:58:22PM +0900, NAKAMURA, Hiroshi wrote:
On Thursday, February 12, 2004, 8:18:32 PM, Mauricio wrote:
On Thursday 12 February 2004 04:37, Gavin Sinclair wrote:
On Friday, February 13, 2004, 12:44:15 AM, Sean wrote:
(Dave Thomas: there's a question for you in the second paragraph; if you're
[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>
Index: cgi-lib.rb
* Gavin Sinclair (gsinclair@soyabean.com.au) wrote:
On Thursday, February 12, 2004, 11:39:37 PM, E wrote:
Hi,
Hi,
[#2422] Re: [ruby-cvs] ruby: * lib/ftools.rb: documented — "U.Nakamura" <usa@...>
Hello,
[#2449] make install not getting through rdoc phase — "David A. Black" <dblack@...>
Hi --
[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>
This is a common approach I use to object initialization; I don't know
On Fri, 20 Feb 2004 02:42:00 +0900, Dave Thomas wrote:
> > As more general suggestion. Could 'new' yield the new object is a block
On Fri, 20 Feb 2004 08:24:31 +0900, Carlos wrote:
Hi,
Yukihiro Matsumoto wrote:
On Feb 20, 2004, at 4:33 PM, Joel VanderWerf wrote:
[#2494] rehash segfault — Nathaniel Talbott <nathaniel@...>
I don't have a lot of information on this bug at this point, but
Hi,
On Wed, Feb 25, 2004 at 03:30:54AM +0900, Yukihiro Matsumoto wrote:
[#2504] foldl and foldr — "Sean E. Russell" <ser@...>
Sorry if I'm opening old wounds; I have a hard time believing that nobody has
Re: rb_io_puts is strange
Hi,
In message "Re: rb_io_puts is strange"
on 04/02/05, Elliott Hughes <ehughes@bluearc.com> writes:
|Some of the things I don't like are, in no particular order:
|
| * It has the same name as C's puts, but doesn't have the same
| behavior as C's puts.
|
| * It isn't to print what Java's println is to Java's print. I
| understand this kind of printing duality, because it's in so
| many languages. As far as I know, Ruby's print/puts
| relationship is unique. It's certainly unusual.
|
| * It implements something I've never wanted, and can't -- to
| be honest -- understand the need for. At the same time, it
| looks like something I do need and use a lot. And *mostly*,
| it works like C's puts.
|
| * It's always going to examine the last character of my string;
| if I needed that, I could implement it for those cases where
| it's what I want.
|
| * It's complicated. Not as bad as Perl's split function[1], sure,
| but far more complicated than it ought to be. I find Ruby's
| great in terms of putting things where I'd expect to find
| them, but I'm often caught out by the behavior of the methods
| I find. (The biggest example for me is the way ! methods tend
| to return nil if they haven't changed anything. Presumably
| they're intended to be used in if statements or something,
| but it's weird that they either behave like their non-!
| counterpart, or return nil.)
I understand what you are saying. But still, I don't feel they are as
bad as you said.
I don't care much about consistency with other languages, for example,
C etc. as long as the basic behavior remains same. At least "puts"
prints the given string with a newline. Ruby's version is little bit
"smarter" though. It wouldn't hurt much, once you've understood.
This is useful when I output the string from the user. I didn't need
to check newlines at the end, nor to chomp the string.
Are there any bad things remain after you take a few minutes to
learn the Ruby behavior?
matz.