Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
awj
on Sept 13, 2011
|
parent
|
context
|
favorite
| on:
Clojure vs Scala - Anecdote
His argument was: if the only two things your class does are take in a string when constructed and return it on demand, you don't need the class.
BrandonM
on Sept 13, 2011
[–]
Exactly... in this case, the functionality of Artist() is a subset of the functionality of str(). In Python, you would just name the
variable
"artist", assign a string to it, and be done with it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: