3 ms·
Calling it object would mean you have different methods of accessing it. But files have a fixed set of methods/properties.
by xfer 7y ago
Calling it object would mean you have different methods of accessing it. But files have a fixed set of methods/properties.
- amelius 7y agoNot sure what you mean, because e.g. ioctl() call has many functions which are not sensible for regular files. In any case, the article has 17 occurrences for "file(s)" versus 28 for "object(s)", so the author seems to agree with me :)
- xfer 7y agoNot every file respond to ioctl() and that's not what people mean when they say "unix philosophy". Yes, in a sense ioctl() does model the object nature, but they aren't discoverable and rather adhoc, as the article points to powershell and capability for reflection for how a OOP based resource access would look like.