Well, technically speaking, using toString() sounds like it would make the enums type insensitive. And that would lead to its own problems, no? It sounds like the solution would be to provide lowercased enum constants in this case (should we decide to "step down" the casing ;)
Thoughts?
You do autocomplete - the options are what is there...no matter if its lowercase or uppercase.
On Mar 16, 2011, at 06:20, Lincoln Baxter, III wrote:
>
> Enums have a to string method one use to make them look less ancient.
>
> I actually find the uppercase printout makes them stand out as option values more than they do as plain text
if the tostring is just the lowercased version its not going to be hard ;)
> , but also, using the toString() name might make it more difficult to convert back to the object.
>Because they are enums ? :P
> Btw. Aren't enums static and thus bad for something like expandable lists ?
>
> Most of the lists you're seeing aren't expandable :)
List of known repositories sounds like something you would like to expand on and not have limited to specific list....
same with many options IMO.
1) It looks UGLY
> But what in specific are your concerns with this? I may have missed something important.
2) I have to type capital letters to get the matching options - unless seam forge becomes case insensitive but then you have problems with file matching on most OS's
3) it looks like Seam Forge is SHOUTING at me
/max
http://about.me/maxandersen