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

Hernán Wilkinson hernan.wilkinson at 10pines.com
Thu Aug 3 06:23:03 PDT 2023


Looks right to me.

Cheers!
Hernan.

On Thu, Aug 3, 2023 at 10:03 AM Gerald Klix via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> 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
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230803/9d0afcef/attachment.htm>


More information about the Cuis-dev mailing list