4 ms·
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/8zle4
by The_rationalist 6y 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_of_the_lifetime_checker/?utm_source=xpromo&utm_medium=amp&utm_name=amp_comment_iterations&utm_term=active_search&utm_content=post_body 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
- hu3 6y agoRust 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/ https://pling.jondgoodwin.com/post/lifetimes/