|
|
|
|
|
by 0x457
8 days ago
|
|
Well, in Rust, you can't make your own Box without using #[lang = "owned_box"] and #[fundamental], plus it has special orphan rule handling. The question is, at least for me, do you really miss out on anything by not having an ability to do so? I think you miss anything, but you gain a lot. |
|
Sure, but are those "just" characteristics of Rust's current implementation or are those inherent to a constructor-less model in general? The latter is the more interesting question to me in this particular context, and I think it's similar to the question you express.