2 ms·
> It seems to me like protocols don't belong in the same directory as libraries for basic local file operations They aren't. File is in core, net/http is in st
by regularfry 16y ago
> It seems to me like protocols don't belong in the same directory as libraries for basic local file operations
They aren't. File is in core, net/http is in stdlib. FileUtils is in stdlib, but that's more about interaction with the filesystem than files themselves, and it's not necessary for every single ruby script the way File is.
For the most part, I think the core/stdlib separation is ok. What I take issue with is the namespace organisation, especially in stdlib. I'd rather see a deeper hierarchy that avoids stomping on the top-level namespace than what we've got now, but that's a lot of work to reorganise.