Uri Guttman <[EMAIL PROTECTED]> writes:
> >>>>> "JSD" == Jonathan Scott Duff <[EMAIL PROTECTED]> writes:
>
> >> I'll revise the RFC to add 'readable()', 'writable()', and such
> >> synonyms for -r and -w that are more like 'use english' and less like
> >> 'use English'.
>
>
> i have a minor problem with the names readable and writeable. i am
> currently using them as method names in a major project i have
> created. they are callbacks (see my recent callback rfc) which mean the
> socket is readable/writeable. maybe put some sort of prefix on them to
> designate them as file test operators so we don't clutter up the
> namespace so much. also the common prefix will make it clear tha tthey
> are part of the family of file test ops.
>
> here are some ideas which you can shoot down:
>
> a minus prefix like the current -r
>
> -readable
> -tty
>
> or has_ as the file has read permission:
>
> has_readable
> has_executable
>
> or is_ if the file is a text file:
>
> is_text
> is_sticky
> is_writable
I refer you to my previous message (archived in
http://tmtowtdi.perl.org/archive?35:mss:4575). Basically, not have a
prefix predicates should have!
Another option is to stuff the long names into some namespace, and
export them upon request (or maybe not export them, upon request).
[...]
--
Ariel Scolnicov |"GCAAGAATTGAACTGTAG" | [EMAIL PROTECTED]
Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz
72 Pinhas Rosen St. |Tel: +972-3-7658514 (Main office)`---------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 http://3w.compugen.co.il/~ariels