Closed nozavroni closed 7 years ago
I went ahead and changed the name of the IO\Resource
class to IO\StreamResource
but I'm still not 100% sure on the name. I'm still considering IO\Res
, IO\Handle
, IO\ResHandle
or IO\StreamRes
Because I haven't yet committed to any particular class name (I changed it from Resource to StreamResource, but I'm still not married to that name) and like I said, IO\Res, IO\StreamRes, IO\RSource, IO\StrmRes, IO\Resourse, and IO\Handle all look pretty good as well (well maybe not Resourse but the rest for sure) I am closing this issue, but only so that it shows up in my list of completed tickets for this milestone. But to remind myself to revisit this issue before pushing this release, I'm going to add a note about it to the Milestone description.
Unfortunately, PHP has seen fit to reserve the word "resource" for future use. So, naming a class "Resource" is, apparently, not such a good idea. So.... I guess I'm going to have to change the name of
CSVelte\IO\Resource
. Here's a list of options:CSVelte\IO\Res
CSVelte\IO\StreamRes
CSVelte\IO\ResourceObject
CSVelte\IO\ResourceObj
CSVelte\IO\StreamResource
CSVelte\IO\StrmRes
CSVelte\IO\SRes
CSVelte\IO\Handle
CSVelte\IO\ResourceHandle
CSVelte\IO\StreamHandle
CSVelte\IO\ResHandle
CSVelte\IO\_resource
CSVelte\IO\Open
CSVelte\IO\Fopen
CSVelte\IO\FHandle
CSVelte\IO\SHandle
CSVelte\IO\FileHandle
CSVelte\IO\IOHandle
CSVelte\IO\IORes
CSVelte\IO\IOResource
CSVelte\IO\SResource
Not a single one of them makes me all warm and fuzzy like resource did, but oh well... gotta pick one. Probably gonna go with
CSVelte\IO\StreamResource
,CSVelte\IO\ResourceObj
,CSVelte\IO\ResourceHandle
orCSVelte\IO\Handle
.IOResource
isn't bad either... hmm...