[Pharo-dev] strange creation time

2014-04-03 Thread Tudor Girba
Hi, I just stumbled across a strange piece of code, and I am wondering about the reasons behind it: FileSystemStorecreationTime: aPath self nodeAt: aPath ifPresent: [ :entry | ^ self basicCreationTime: entry ] ifAbsent: [ ^ false ]. In what case does returning false make sense? Doru --

Re: [Pharo-dev] strange creation time

2014-04-03 Thread Max Leske
+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 tu...@tudorgirba.com wrote: Hi, I just stumbled across a strange piece of code, and I am wondering about the reasons behind it:

Re: [Pharo-dev] strange creation time

2014-04-03 Thread Tudor Girba
I think it should be either a NoDate object, or an exception. Doru On Thu, Apr 3, 2014 at 1:06 PM, Max Leske maxle...@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

Re: [Pharo-dev] strange creation time

2014-04-03 Thread Max Leske
exception sounds reasonable to me, since you will usually know if a path exists beforehand. On 03.04.2014, at 14:14, Tudor Girba tu...@tudorgirba.com wrote: I think it should be either a NoDate object, or an exception. Doru On Thu, Apr 3, 2014 at 1:06 PM, Max Leske maxle...@gmail.com