|
Hello!
Why #isRightNullValue: and #isLeftNullValue: methods are not symmetric?
---8<---
TypeConverter>>isLeftNullValue: anObject
^anObject = self leftNullValue
TypeConverter>>isRightNullValue: anObject
^anObject isNil
---8<---
For example, how I could return nil from NumberPresenter?
Could I replace #isRightNullValue: method with code below?
---8<---
TypeConverter>>isRightNullValue: anObject
^anObject isNil or: [ anObject = self rightNullValue ]
---8<---
--
Dmitry Zamotkin
|