HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
binary132
9 days ago
|
parent
|
context
|
favorite
| on:
In C++, = default and {} are not the same construc...
yes, just like in Rust, where Drop and constructors are optional idioms.
help
aw1621107
9 days ago
[–]
Manually implementing the Drop
trait
, perhaps, but the same can't be said for the drop
operation
, which you always get at the end of scope unless you opt out (which is very much a rare thing to do).
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: