things vs Thing (extends Enumeration)

View: New views
2 Messages — Rating Filter:   Alert me  

things vs Thing (extends Enumeration)

by Rob Dickens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Programming in Scala would say Thing. However, I'm strongly inclined to prefer things, for the following reasons:

* it's an instance, not a type, and should therefore use lower case - thus removing the temptation to write 'arg: Thing'

* using the plural nicely indicates an Enumeration.

Please could anyone who disagrees point out what I'm missing.

Cheers,

Rob

Re: things vs Thing (extends Enumeration)

by Rob Dickens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd just follow the Enumeration sdoc example if I were you.

2009/10/2 Rob Dickens <arctic.bob@...>
Programming in Scala would say Thing. However, I'm strongly inclined to prefer things, for the following reasons:

* it's an instance, not a type, and should therefore use lower case - thus removing the temptation to write 'arg: Thing'

* using the plural nicely indicates an Enumeration.

Please could anyone who disagrees point out what I'm missing.

Cheers,

Rob