+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 <[email protected]> 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"
