develooper Front page | perl.perl6.language | Postings from February 2009

Re: IO, Trees, and Time/Date

Thread Previous | Thread Next
From:
Mark J. Reed
Date:
February 18, 2009 06:21
Subject:
Re: IO, Trees, and Time/Date
Message ID:
f60fe000902180621k174861f4g690ff87f1c879bfe@mail.gmail.com
On Wed, Feb 18, 2009 at 6:36 AM, Richard Hainsworth
<richard@rusrating.ru> wrote:
> What needs to be abstracted so that a perl6 program can know that a
> Writeable may not be able to accept data (eg., because the file system is
> full)?

I don't understand the question.  To be a Writable, an object must
have a mechanism for accepting data.  That mechanism may fail for any
of a large number of reasons (out of space, no permission, etc...),
but that's orthogonal to the fact that it's a Writable.  A Readable is
not the same thing as "a Writable you can't actually write to right
now".

Side question: are HTTP URI's Writable?  If so, I imagine that
translates into a PUT.  Is there any benefit in abstracting out the
functionality of POST in a way that maps to other resource types?

-- 
Mark J. Reed <markjreed@gmail.com>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About