Y
Hacker News
new
|
ask
|
show
|
jobs
by
AnkhMorporkian
4108 days ago
Static methods are fantastic. I use them all the time for deserialization. Adding a .from_json() static method to create a new instance makes way more sense to me than putting one outside the class.