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

Juan Vuletich juan at cuis.st
Mon Aug 7 11:35:58 PDT 2023


Just pushed them.

Cheers,

On 8/3/2023 10:23 AM, Hernán Wilkinson via Cuis-dev wrote:
> 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 <mailto: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 <mailto:Cuis-dev at lists.cuis.st>
>     https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
>
> -- 
> *Hernán Wilkinson
> Agile 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


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230807/f638bf83/attachment.htm>


More information about the Cuis-dev mailing list