-
Notifications
You must be signed in to change notification settings - Fork 26
File vs File descriptor #8
Comments
The |
Could we collapse both under @Stebalien WDYT? |
Taking a closer look at the Lines 75 to 79 in 166e30e
|
I believe the idea is that a File represents the file itself and a file descriptor is a handle to an open file. Basically, having a File is like calling As you noted, it also allows for many readers. However, that can actually be implemented without ever exposing the underlying "file" object to the user (that can be an implementation detail). |
Yes, that makes sense, we can't collapse both into one, but I need to review the API boundaries between the two and better define who does what. |
One thing to review is the relationship between |
So the Line 135 in e5a375d
Why not just use the |
I can definitely sympathize with that, in almost all circumstances they are all accessing the same DAG service (created in the |
This repository is no longer maintained and has been copied over to Boxo. In an effort to avoid noise and crippling in the Boxo repo from the weight of issues of the past, we are closing most issues and PRs in this repo. Please feel free to open a new issue in Boxo (and reference this issue) if resolving this issue is still critical for unblocking or improving your usecase. You can learn more in the FAQs for the Boxo repo copying/consolidation effort. |
The
fileDescriptor
structure seems to be doing too much work which should be moved to theFile
structure.The text was updated successfully, but these errors were encountered: