From: stephan b. <st...@s1...> - 2004-12-25 16:20:41
|
Yo, Last night i realized that from a dependencies point of view, URL is not really a Net class. It doesn't depend on any Net functionality, but does depend on Unicode. URL doesn't really belong to Unicode, either, though. IO and Net both currently use URL (zB, IOHandler::get(URL)), but IO should not depend on Net (aber anders rum). So how about moving URL to IO? A URL does not represent an IO operation, but does hold data for a potential IO operation. A URL is essentially a pointer to an abstract data source, and data sources are used for IO. This change would eliminate one circular dep on Net and IO, and would also allow the IOManager to not depend on Net (which it shouldn't have to). If URL stays in Net then the whole IO and Net modules have a circular dep, which complicates building them and will make code maintenance more difficult at some point. Another option is we combine IO and Net into one module. Logically speaking, IO/Net are quite similar, and will be used in similar contexts. There IS a distinction between them, and 2 separate modules is certainly justifiable, but i don't know if most people will realize these subtle distinctions. ??? -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |