HackerTrans
TopNewTrendsCommentsPastAskShowJobs

norman_roman

no profile record

comments

norman_roman
·3 anni fa·discuss
[flagged]
norman_roman
·3 anni fa·discuss
>Ada95 introduced controlled types, which is basically Ada's version of RAII, no need to call Unchecked_Deallocation outside implementation details. Hardly any different from Rust code that uses unsafe underneath.

This is basically like C++ destructors, but the problem is there are no move semantics in Ada, so you can't implement something like unique_ptr.

It's hardly comparable with Rust.