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

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02835] Re: file.size, OS dependency and Ruby look killer?

From: Dave Thomas <Dave@...>
Date: 2000-05-16 14:02:31 UTC
List: ruby-talk #2835
Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

> Of course both of these cases can be worked out (one can overwrite current
> functionality with own versions, or simply create own libraries), but I
> think Ruby is not promoting easiness of such thing by well thought,
> organized and implemented interfaces for system, OS or platform dependent
> feature importation.

OK, but then look at the code of the interpreter, or the code of
Perl, or any other "portable" piece of C. What do you find in the
interface code? Hundreds of nested #ifdefs, all checking for the
availability of features and sub-features.

If you make feature selection a programmer responsibility, then won't
the Ruby scripts end up being equally ugly?

My preference is to say that you don't do anything special to use
features. If they aren't present, then methods implementing that
feature return some distinguished value to tell you.

_HOWEVER_ I would like to see the equivalent of rbconfig.rb that gave
me a list of feature test predicates so I can see what's available on
any particular platform.



Dave

In This Thread

Prev Next