Y
Hacker News
new
|
ask
|
show
|
jobs
by
oh_sigh
1225 days ago
You can also have cached static instances(assuming immutability), eg Point.fromLonLat(0,0) can always return the same instance, whereas new Point(0,0) must allocate and return a new instance.