I'm for having the methods, although I prefer the "isOnOrAfter/isOnOrBefore"
naming.

For me, the reason for having the extra methods is for readability;
'!a.isAfter(b)' is logically equivalent to 'a.isOnOrBefore(b)' but they read
differently and so can make code easier to understand. If the naming of the
method is "isNotAfter" then I don't see the advantage over using the existing
method with the not operator (!a.isAfter(b)).

Paul
------------------
Paul Field
Research IT
Deutsche Bank


[EMAIL PROTECTED] wrote on 01/01/2008 17:01:07:

> Count me as one, and FWIW I like 'isNotBefore' and 'isNotAfter' as
> method names.
>
> Chris
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of
> Stephen Colebourne
> Sent: Tue 1/1/2008 3:25 AM
> To: Discussion of the Joda project
> Subject: Re: [Joda-interest] New methods in LocalDate and LocalTime classes
>
> bart zagers wrote:
> > Hey,
> >
> > I have to agree, we have introduced similar methods ourselves,
> > although we call them isNotBefore and isNotAfter. In fact, we use them
> > more often than isBefore and isAfter.
>
> I have long debated the possible usefulness of these methods. Are there
> any other supporters of them?
>
> Stephen
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest

---

This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and delete this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional
EU corporate and regulatory disclosures.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to