Hacker News new | ask | show | jobs
by mmaniac 716 days ago
Rust doesn't have constructors. By convention, a static method called new returns a struct - no magic.