On 2/26/2013 1:26 PM, H. S. Teoh wrote:
Having too many ways of stating the
same thing makes me wonder if there's some subtle bug lurking somewhere.
What if isPresent is not 100% equivalent to !isBlank? And I don't mean
just hypothetically; I've seen cases of libraries where bugs cause two
supposedly-opposite functions to be not exactly opposite, and then code
starts to depend on the buggy behaviour, causing hidden bugs later when
the code gets fixed, etc.. A lot of unnecessary problems when you could
have just written !isBlank in the first place.

This is a subtle but very important point.

Reply via email to