[Cuis-dev] [QUESTION] #asFileEntry and #asDirectoryEntry

Gerald Klix cuis.01 at klix.ch
Thu Aug 3 06:03:45 PDT 2023


Hi all,

IHMO, it makes sense to add #asFileEntry and #asDirectoryEntry
to the classes FileEntry and DirectoryEntry both answering self.

This will avoid clumsy code like this:

fileEntry := aFilename isString
     ifTrue: [ aFilename asFileEntry ]
     ifFalse: [ aFilename ].



Best Regards,

Gerald


More information about the Cuis-dev mailing list