I would like the Attribute keys to be Objects instead of Strings or Enums.
(Because then we could use Enums if we want, right? 
Or is there another good reason for not using POJO? .hashCode() collision?)

This isn't really on the topic, but please someone correct me if I'm wrong.
A serious shortcoming of Enums is no reverse mapping from ordinal to Enum.
Only from String to enum. Which means you can't really use enums in a 
Binary protocol definition talking to other languages and such. 
I was bummed about that.


# -----Original Message-----
# From: Trustin Lee [mailto:[EMAIL PROTECTED] 
# Sent: Tuesday, May 22, 2007 10:17 PM
# To: [email protected]
# Subject: Re: setEnumAttribute?
# 
# On 5/23/07, peter royal <[EMAIL PROTECTED]> wrote:
# > On May 22, 2007, at 10:01 PM, Trustin Lee wrote:
# > > Do you think we need to remove the restriction that the 
# key must be 
# > > a string?  It makes sense IMHO.
# >
# > i don't think we need to.. i find it easy enough now, since 
# its like 
# > the servlet API that i know well :) .. but i won't object if the 
# > community as a whole would rather have it gone.
# 
# I think so too.  The community drives!  What do you think guys? :)
# 
# Trustin
# --
# what we call human nature is actually human habit
# --
# http://gleamynode.net/
# --
# PGP Key ID: 0x0255ECA6

Reply via email to