[squeak-dev] Re: [ANN] Filesystem 1.0
Denis Kudriashov
dionisiydk at gmail.com
Tue Nov 24 06:41:28 UTC 2009
2009/11/21 Colin Putney <cputney at wiresong.ca>
> I really need to rewrite the tutorial to de-emphasize paths. You should use
> FSReference for everything. Once I get Eliot's suggestion implemented, the
> above will be:
>
> ref := FSReference D / 'Squeak' / '3.10'.
>
> Hi
I don't like global objects referencess in code. I cant mock global object
in tests.
I like VW dsl for that. For FileSystem it's can be:
'd://squeak/3.10' asFileReference.
And delimiter "/" is just squeak delimiter (not OS filenames delimiter).
#asFileReference can be implemented like that:
String>>asFileReference
FileSystem default parseFileReference: this.
I think this approach hides windows disks logic.
And for different FileSystem (not defafult) it's can be:
'squeak' / '3.10' asFileReferenceOn: aFileSystem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20091124/1f6120ce/attachment.htm
More information about the Squeak-dev
mailing list
|