What about them makes you want them removed?
At what point are you asking just a language-supported copy operator? (thought I guess copy assignments still exist, it's mostly a matter of whether the destination has valid initial values)
-
-
Rust has a Copy trait that you can opt into. That seems fine and could be the type of things you'd add as a consequence after you've removed the constructors. But if not.. eh, no big deal. Just write C like code. Can't copy if you only have a Foo* and don't know the size!
-
sizeof(Foo)? I suppose with a copy operator opt-in and default initialization, I can see constructors going the way of the dodo.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.