On Wed, Sep 27, 2000 at 08:50:28AM +0200, Bart Lateur wrote:
> On 27 Sep 2000 09:16:10 +0300, Ariel Scolnicov wrote:
>
> >Another option is to stuff the long names into some namespace, and
> >export them upon request (or maybe not export them, upon request).
>
> Can you say "method"?
Doesn't work on scalars. Unless every scalar should have a
'readable()' method *just in case* it could contain a filename.
Not sure I like that.
I just drafted a set of methods. The basic problem is -e => exists(),
and -S => socket(), which are already taken. I didn't like the
idea of -e => present(), and I couldn't think of a synonym for
exists that begins with 'e', nor a synonym for socket that begins with 's'.
:-)
If that isn't enough, I think we all forgot about thie difference between
-r and -R, which *really confuses things. Is one of them more readable
than the other?
It's late, and I'm just going through another revision of 4 of my last 5,
and I went with f*() and F*() for the -RWX. Not as bad as
filetest::readable()
filetest::really_readable()
filetest::exists()
filetest::socket()
...
Update to be posted as soon as the left hand finds out what the right hand
was doing...
Z.