[Pharo-dev] strange creation time

Tudor Girba tudor at tudorgirba.com
Thu Apr 3 08:14:38 EDT 2014


I think it should be either a NoDate object, or an exception.

Doru


On Thu, Apr 3, 2014 at 1:06 PM, Max Leske <maxleske at gmail.com> wrote:

> +1
>
> methods should return one single type of object. The only question: what
> time should be returned? Or should it be nil?
>
> On 03.04.2014, at 11:12, Tudor Girba <tudor at tudorgirba.com> wrote:
>
> Hi,
>
> I just stumbled across a strange piece of code, and I am wondering about
> the reasons behind it:
>
> FileSystemStore>>creationTime: aPath
> self
>  nodeAt: aPath
> ifPresent: [ :entry | ^ self basicCreationTime: entry ]
> ifAbsent: [ ^ false ].
>
> In what case does returning "false" make sense?
>
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20140403/43ca0090/attachment-0002.html>


More information about the Pharo-dev mailing list