<br><br><div><span class="gmail_quote">On 7/7/06, <b class="gmail_sendername">Greg Ewing</b> <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Brett Cannon wrote:<br>> On 7/5/06, *Greg Ewing* <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a><br><br>> And I would change file() so that it didn't open<br>> files. Then it would be harmless for code to have
<br>> access to the file class.<br><br>> Right, that is essentially what I proposed initially with the whole<br>> crippling idea.<br>><br>> What the capabilities supporters are saying is that if we go that route
<br>> we will be constantly finding objects that require similar crippling.<br><br>We've got our wires crossed somewhere. I *am* a capabilities<br>supporter. But for a capability model to work, the capabilities<br>need to be isolated and encapsulated in functions or objects
<br>that can be independently provided or not provided. In the<br>case of file(), that means separating the capability of<br>being able to open a file from the capability of accessing<br>an already-opened file. These two things are currently
<br>conflated in the file class.</blockquote><div><br>OK, putting that way makes sense for labelling it as capabilities support. It just seems like everyone else who has been calling for more capabilities have not been wanting to change file() in any way.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">BTW, I object to the term "crippling" in this particular<br>case. If you have access to open(), there's no need for
<br>file() to be able to do the same thing. And if you don't<br>have access to open(), it's because someone doesn't want<br>you to be able to open files.</blockquote><div><br> But, from the perspective of what file() can do now, it is losing an ability that it once had and not quite as powerful as it was.
<br><br><br>-Brett</div></div>