I'm
really enjoying FS (I couldn't wait so I loaded it into 1.3-rc; all working so far).
I keep finding myself writing things like:
FSReference>>doSomething "double dispatch extension method"
self isDirectory
ifTrue: [ ... ]
ifFalse: [ ... ].
I feel dirty every time, but FS doesn't make this piece of a reference's identity explicit. Would it be valuable to have FSFileReference and FSDirectoryReference subclasses? It would certainly make my code cleaner as I could then double dispatch without conditionals.
Thanks.
Sean
Cheers,
Sean