Better HN
topnewbestaskshowjobs
Log inSign up

norman_roman

1 karma · joined Aug 28, 2023 (3y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

>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.