This page is no longer maintained — Please continue to the home page at www.scala-lang.org

things vs Thing (extends Enumeration)

1 reply
Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
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
Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: things vs Thing (extends Enumeration)
I'd just follow the Enumeration sdoc example if I were you.

2009/10/2 Rob Dickens <arctic [dot] bob [at] googlemail [dot] com>
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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland