Gaal Yahas skribis 2005-05-04 13:48 (+0300):
> * canonical representations (eg, :w in your example should probably set
>   $write)

Or, possibly, $w := $write.

> * mutually exclusive options (for open modes, :write should exclude
>   :append)

I don't really care if this goes in the signature. Runtime checking is
good enough for this.

    sub foo (+$write, +$append) {
        fail "..." if $write and $append;
        ...
    }

Although I don't think this particular check is needed at all, as append
isn't quite opening the file read-only. Just ignore that :write was also
given.

> * computed options (if by "let Perl figure that out" $mode you didn't mean
>   "let perl's open figure it out with explicit code).

I did mean let open figure it out. That is, let &open decide based on
the named arguments it gets how to open something. Let *it* find a way
to specify 'a+' and stuff like that, so we can write it readably.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to