Please rethink extended enums inclusion

Jose Antonio Illescas Del Olmo jantonio.illescas at rbcdexia-is.es
Mon Oct 10 01:55:46 PDT 2011


Let me explain a real case: my current project (120.00 lines of code) 
with many enums (350 enums)

An abstract enum can reduce aprox. 10 lines of code: internal field 
"code", getter/setter of "code", static attribute "CODES", utility 
methods as "in"....

     350 enums x 10 lines of code = 3500 removed lines (it's an 
important reduction)


I think that abstract enums can help us (all java developer) to reduce 
dramatically our lines of code...



More information about the coin-dev mailing list