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

--
View this message in context: 
http://forum.world.st/FSReference-tp3985640p3985640.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Reply via email to