[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02839] Re: Ruby's inherit OS dependency bugs me

From: matz@... (Yukihiro Matsumoto)
Date: 2000-05-16 16:16:47 UTC
List: ruby-talk #2839
Hi,

In message "[ruby-talk:02830] Ruby's inherit OS dependency bugs me"
    on 00/05/16, Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

|From my point of view the the language should be quite 
|(if not totally) neutral to the OS it's implementations are running in. 

Every language relects its designer's view and philosophy.  For me,
UNIX flavor is part of it.  Yes, I'm invading other OS worlds by Ruby
philosophy. ;-)

In Ruby, the path separator is always "/", for example.

|  NEEDS_BINMODE = true if /WIN/ni === RUBY_PLATFORM
|  PATH_SEPARATOR = {'UNIX'=>'/', 'WINDOWS'=>'\\', 'MACINTOSH'=>':'}

I'm not sure why Wakou (the cgi.rb author) added these lines.  I think
they are there for historical reason.  I guess we can remove them, as
Dave pointed out.

I'm trying that UNIX style Ruby programs run everywhere, while leaving
OS dependant (thus non-portable) programs possible.  It's my way to
accomplish "write once, run everywhere (tm)".

							matz.

In This Thread

Prev Next