Re: Adding enums?

From: Michael Gentry (mgentr..asslight.net)
Date: Wed Sep 23 2009 - 11:25:54 EDT

  • Next message: Andrey Razumovsky: "Re: Making sense of callbacks"

    I was favoring #1. #2 was just a thought to keep it similar to what
    already exists in the Ordering class, but didn't seem as good to me.

    On Wed, Sep 23, 2009 at 11:13 AM, Andrus Adamchik
    <andru..bjectstyle.org> wrote:
    >
    > On Sep 23, 2009, at 6:09 PM, Michael Gentry wrote:
    >
    >> #1: Call the enum class Order.  I think Order.ASCENDING would be
    >> readable and intuitive.
    >
    > +1
    >
    >>
    >> #2: Keep it something more descriptive like OrderingDirection, but in
    >> the Ordering class have a "public static final OrderingDirection
    >> ASCENDING = OrderingDirection.ASCENDING;".  Then you could reference
    >> Ordering.ASCENDING (kind of like Ordering.ASC).  This seems awkward,
    >> though, but makes it similar to what is already there.
    >
    > Don't understand this one. Why the new Order enum is not sufficient?
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Sep 23 2009 - 11:27:19 EDT