|
|
|
|
|
by metaltyphoon
391 days ago
|
|
This was one of the best decisions that Rust and Go did; not have constructors. In C# this is super annoying too, specially when you need an async operation to construct a type. This is usually done by having an private constructor and then using a static public method to create the type. |
|