Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jkulmala
on May 25, 2013
|
parent
|
context
|
favorite
| on:
Should String Be An Abstract Class?
String is immutable for good reasons. It's explained in Joshua Bloch's Effective Java, which should be mandatory reading for all Java programmers.
danbjson
on May 25, 2013
[–]
Agreed. I cannot see anyone in this thread (blogpost or comments) that has argued for the opposite "string should be mutable".
jkulmala
on May 26, 2013
|
parent
[–]
Well, immutable classes are final. Thus, suggesting to make it abstract does suggest the opposite, IMHO.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: