Dear List,

Consider the following method:
-=-=-=-=-=-=-=-=-=-=-=-=
AClass>>aMethod
        ^ self compute
                ifTrue: [ #aSelector ]
                ifFalse: [ false ]
-=-=-=-=-=-=-=-=-=-=-=-=
I read somewhere that having a method that may return different type  
of values is not of a good style. I first through it was in Kent's  
book, but I cannot find it.
Is there a book that talk about this coding style?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to