Hacker News new | ask | show | jobs
by The_rationalist 2143 days ago
C++ is building something similar (and maybe with less syntactic noise aka lifetimes markers) to rust borrow checker https://www.reddit.com/r/cpp/comments/8zle4k/current_state_o...

But yeah indeed, rust borrowed more concepts (e.g RAII) from C++ than C++ borrowed from rust

1 comments

Rust also borrowed concepts from Cyclone:

> The inspiration for safe borrowed references comes in two ways from the Cyclone programming language, a joint development effort by AT&T and Cornell University. The notion of a borrowed reference is adapted from Cyclone’s polymorphic restricted alias pointers. Additionally, Cyclone’s safe memory management focused on regions (which are usually arenas). In order to ensure memory safety, Cyclone pointers could be annotated with a named region qualifier preceded with a back-tick (making them look very much like Rust’s apostrophe-based lifetime annotations).

source: https://pling.jondgoodwin.com/post/lifetimes/