<br><br><div><span class="gmail_quote">On 6/5/05, <b class="gmail_sendername">holger krekel</b> &lt;<a href="mailto:hpk@trillke.net">hpk@trillke.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Jun 05, 2005 at 12:13 -0700, Narayan Newton wrote:<br>&gt; As for the inheritance, I was thinking that there would be some methods that<br>&gt; every FS class should have, but are more convenience methods and would
<br>&gt; pretty much just be wrappers around other class methods.<br><br>Maybe.&nbsp;&nbsp;IMO it makes sense to keep the lowlevel filesystem<br>class/API _very_ minimal and with no fluff so that it is easy to<br>implement a new backend.&nbsp;&nbsp;You might be suprised how difficult it is
<br>to implement and test common semantics of just a few filesystem<br>implementations especially when it comes to clean error<br>conditions/uniform exception handling.<br><br>&gt; It would be nice to not have to write this for every FS
<br>&gt; class, just inherit them from the parent.<br><br>Sure enough.&nbsp;&nbsp;However, Filename and/or URI manipulations<br>should probably go at a separated layer (call it 'frontend' if<br>you like) that can make use of filesystem implementations
<br>without a need to subclass.<br><br>cheers,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;holger<br></blockquote></div><br>Agreed. I had misinterpreted what you said. :)<br>
<br><br>-- <br>Narayan Newton