Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, we discussed the possibility of doing this. But we eventually decided that it wasn't worth it due to these issues:

* It's surprising behavior for destructors, which can have side effects. C++/D RAII and try/finally in other languages never behave like this.

* You can do it yourself, by moving the values-to-be-destructed into the bit bucket with "let _ = ...";

* You still have the ABI issues in that you can't use cdecl and have to use Pascal/stdcall to get TCO.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: